MainMenue weiterbearbeitet und Shop angelegt
This commit is contained in:
34
Assets/Scripts/Player/InventoryScript.cs
Normal file
34
Assets/Scripts/Player/InventoryScript.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class InventoryScript : MonoBehaviour
|
||||
{
|
||||
//Energy
|
||||
[SerializeField] int energy = 10;
|
||||
|
||||
public InventoryScript(int energy)
|
||||
{
|
||||
this.energy = energy;
|
||||
}
|
||||
|
||||
public int Energy { get => energy; set => energy = value; }
|
||||
|
||||
//Health
|
||||
[SerializeField] int health = 1;
|
||||
public int Health { get => health; set => health = value; }
|
||||
|
||||
//Gems
|
||||
[SerializeField] int gems;
|
||||
public int Gems { get => gems; set => gems = value; }
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user