create base item SO for container. still need to set container type for different item types (sellable or not)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class BaseItemSO : ScriptableObject
|
||||
{
|
||||
public string ItemName;
|
||||
public Sprite Icon;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 76f6b12a84fd9e142b92cb523db68c4c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,10 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu()]
|
||||
public class SellableItemSO : ScriptableObject
|
||||
public class SellableItemSO : BaseItemSO
|
||||
{
|
||||
public Transform Prefab;
|
||||
public string ItemName;
|
||||
public float Price;
|
||||
public Sprite Icon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user