MainMenueShop weiter angepasst, DevMode gebaut, Text funktioniert noch nicht, CreditsScene Panel fertig
This commit is contained in:
@@ -2,34 +2,32 @@ using UnityEngine;
|
||||
|
||||
public class InventoryScript : MonoBehaviour
|
||||
{
|
||||
|
||||
public static int deineMudda = 2;
|
||||
static int deinVadda = 0;
|
||||
|
||||
//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
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user