diff options
Diffstat (limited to 'GameCode/TreasureChest.cs')
-rw-r--r-- | GameCode/TreasureChest.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/GameCode/TreasureChest.cs b/GameCode/TreasureChest.cs new file mode 100644 index 0000000..cf18502 --- /dev/null +++ b/GameCode/TreasureChest.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +public class TreasureChest : MonoBehaviour, IBuildable +{ + [SerializeField] + private GameObject uiObject; + + public int numberOfDrops = 1; + + private void Start() + { + } + + public void SpawnUI() + { + Object.Instantiate(uiObject, base.transform.position, Quaternion.identity).GetComponent<TreasureUI>().myChest = base.gameObject; + } + + public void Demolish() + { + } + + public void SetStats() + { + } +} |