/// <summary> /// 敵キャラクター選択時 /// 自分のターン時のみ実行出来る /// </summary> public IEnumerator OnSelectEnemy(BattleEnemyController enemy) { if (!IsPlayerTurn) { yield break; } ChangeState(BattleState.EnemySelected); Player.Attack(enemy.Enemy); BattleUIManager.I.StatusPanel.Move(false); yield return(WaitInterval()); yield return(enemy.PlayDamageEffect()); // Playerターン終了 yield return(OnEndPlayerTurn()); }
public void OnClickEnemy(BattleEnemyController enemy) { StartCoroutine(Global.BattleManager.OnSelectEnemy(enemy)); }