public void OnClickAttack() { if (phase == BattlePhase.myCommandWait) { Attack.SetActive(false); Defense.SetActive(false); Magic.SetActive(false); Recovery.SetActive(false); phase = BattlePhase.myTurn; } enemyController.eneHP = enemyController.eneHP - monsterController.power; Debug.Log("" + monsterController.power + "のダメージを与えた。"); Debug.Log("敵の残りHPは" + enemyController.eneHP); messageScript.SetAttackMessage(); hPBarController.MonsterAttack(); }