private void SelectAction() { if (!isDead) { current_turn += 1; currentState = MonsterState.WAIT; EnableSelecting(true); } else { currentState = MonsterState.WAIT; TurnDead--; if (TurnDead <= 0) { isDead = false; mb.ActDead(isDead); } EndTurn(); } }
private IEnumerator BeDead() { yield return(new WaitForSeconds(0.3f)); mb.ActDead(true); }