35 lines
707 B
C#
35 lines
707 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|