Ejemplo n.º 1
0
 IEnumerator Potion()
 {
     for (int i = 0; i < potionCount; i++)
     {
         characterStatus.DecreaseHealthPoint((int)(characterStatus.HealthPoint * -0.3));
         characterStatus.DecreaseMagicPoint((int)(characterStatus.MagicPoint * -0.3));
         UIManager.Instance.BattleUIManager.hpBarCalculation(characterStatus.MaxHealthPoint, characterStatus.HealthPoint);
         UIManager.Instance.BattleUIManager.mpBarCalculation(characterStatus.MaxMagicPoint, characterStatus.MagicPoint);
         yield return(new WaitForSeconds(1f));
     }
 }
Ejemplo n.º 2
0
 public virtual void UsingMagicPoint(int SkillArray)
 {
     charStatus.DecreaseMagicPoint(SkillManager.instance.SkillData.GetSkill((int)charStatus.HClass, SkillArray).ManaCost);
 }