/// <summary> /// Starts the player turn. /// </summary> public void StartPlayerTurn() { ResolvePlayerOnTurnStart(); ResetBlock(); // Increase max mana if it haven't reach the limit if (MaxMana < MANA_LIMIT) { MaxMana++; } // Reset current turn mana Mana = MaxMana; // Render the texts MaxManaText.text = MaxMana.ToString(); ManaText.text = Mana.ToString(); if (SkipTurn) { mMatchController.EndPlayerTurn(); SkipTurn = false; } }
public void SetPlayer(Player_Data pPlayer) { Level = pPlayer.PlayerLevel; HealthText.text = pPlayer.Health.ToString(); Health = pPlayer.Health; Mana = 4; MaxMana = 4; MaxManaText.text = MaxMana.ToString(); ManaText.text = Mana.ToString(); }
public string StatsDisplay() { string stats = ("Wizard Joey: \n" + "\nHealth: " + Health.ToString() + "/" + MaxHealth.ToString() + "\nMana: " + Mana.ToString() + "/" + MaxMana.ToString() + "\nHealth Regen: " + statsScript.HealthRegenStat.ToString() + " per second" + "\nMana Regen: " + statsScript.ManaRegenStat.ToString() + " per second" /*+ "\nGold: " + gold.ToString()*/ + "\n" + Armor); // + "\nCurrent Experience: " + experience.ToString() + "/" + nextLvlExp.ToString()); // StatsText.text = ("Wizard Joey: \n" // + "\nHealth: " + health.ToString() + "/" + maxHealth.ToString() // + "\nMana: " + mana.ToString() + "/" + maxMana.ToString() // + "\nGold: " + gold.ToString() // //+ "\nArmor: " + Armor.ToString() // + "\nCurrent Experience: " + experience.ToString() + "/" + nextLvlExp.ToString()); return(stats); }