public void OnLeave(IState to = null) { if (coroutine_trans != null) { coroutine_trans.Interrupt(); } if (coroutine != null) { coroutine.Interrupt(); } }