public override IEnumerator OnRemoveFromStack() { if (ShowUIBlocker) { mTrigger = null; mCollider = null; mBlocker = null; } Show(false); Option = null; if (mClearQueue) { mQueue.Clear(); } yield return(new WaitForEndOfFrame()); if (mQueue.Count > 0) { Show(mQueue.Dequeue()); } else if (!IsOpen()) { DestroySelf(); } }
public void ClearMovementQueue() { _movePosQue.Clear(); _onMoveEndActionByQue = null; StopMoveInDestination(); _characterComponent.Stop(); }