コード例 #1
0
        public IEnumerator RunSyncAction(IEnumerator action)
        {
            ActorProxy.EnableSeeker(false);
            yield return(action);

            ActorProxy.UpdateSyncPositionToCurrentPosition();
            ActorProxy.EnableSeeker(true);
            SyncAction           = null;
            _syncActionCoroutine = null;
        }
コード例 #2
0
ファイル: BaseStat.AI.cs プロジェクト: robin1392/robin
        public void StopAllAction()
        {
            StopAI();

            if (SyncAction != null)
            {
                SyncAction.OnActionCancel(ActorProxy);
                ActorProxy.UpdateSyncPositionToCurrentPosition();
                SyncAction = null;
            }

            if (_syncActionCoroutine != null)
            {
                StopCoroutine(_syncActionCoroutine);
                _syncActionCoroutine = null;
            }
        }