private void Awake()
    {
        currentHealth = maxHealth.GetValue();
        currentMana   = maxMana.GetValue();

        healthui.SetMaxHealth(maxHealth.GetValue());
        manaUI.SetMaxMana(maxMana.GetValue());
        minMana = manaUsage.GetValue();
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     currentMana = maxMana;
     manaUI.SetMaxMana(maxMana);
     InvokeRepeating("Regenerate", 0.0f, 10 / regenSpeed);
 }