public IEnumerator Spell(SpellCommand spellCommand) { BattleCharacter owner = spellCommand.owner; int spellMp = spellCommand.spellData.mp; string spellMessage = spellCommand.owner.CharacterName + "はじゅもんをとなえた"; yield return(StartCoroutine(message.ShowAuto(spellMessage))); if (owner.status.mp <= spellMp) { yield return(StartCoroutine(message.ShowAuto("しかし MPが たりない!"))); yield break; } owner.GainMp(spellMp); yield return(StartCoroutine(effectExecutor.Execution(spellCommand))); yield break; }