//1マス移動ぶんの回復を適用 public void applyMoveHealing() { int hpHealValue = 30; if (status.hp < status.maxHp) { status.healHp(hpHealValue); DamageEffect createdHpEffect = Instantiate <DamageEffect>(healEffect, hpValue.transform); createdHpEffect.damageText.text = hpHealValue.ToString(); } int mpHealValue = status.magicCapacity * 2 + 5; if (status.mp < status.maxMp) { status.healMp(mpHealValue); DamageEffect createdMpEffect = Instantiate <DamageEffect>(healEffectMP, mpValue.transform); createdMpEffect.transform.Translate(new Vector3(0, 50, 0)); createdMpEffect.damageText.text = mpHealValue.ToString(); } }