void Update() { if (WaitForEndOfAction != null && WaitForEndOfAction.IsActive() == false) { SwitchState(E_State.ThirdPerson); WaitForEndOfAction = null; } }