36 lines
651 B
C#
36 lines
651 B
C#
using UnityEngine;
|
|
|
|
public class InventoryScript : MonoBehaviour
|
|
{
|
|
//Energy
|
|
[SerializeField] int energy = 10;
|
|
|
|
//Health
|
|
[SerializeField] int health = 1;
|
|
|
|
//Gems
|
|
[SerializeField] int gems;
|
|
|
|
|
|
public InventoryScript(int energy, int health, int gems)
|
|
{
|
|
this.energy = energy;
|
|
this.health = health;
|
|
this.gems = gems;
|
|
}
|
|
|
|
public int Energy { get => energy; set => energy = value; }
|
|
public int Health { get => health; set => health = value; }
|
|
public int Gems { get => gems; set => gems = value; }
|
|
|
|
void Start()
|
|
{
|
|
Gems = 10;
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|