public void Back() { if (_state == State.MainMenu) { Application.Quit(); } else { if (_state != State.Play) { Debug.LogWarning("Cannot back from except Play."); return; } _state = State.MainMenu; _animator.SetTrigger("Back"); } }