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