示例#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));
     }
 }
示例#2
0
 public virtual void UsingMagicPoint(int SkillArray)
 {
     charStatus.DecreaseMagicPoint(SkillManager.instance.SkillData.GetSkill((int)charStatus.HClass, SkillArray).ManaCost);
 }