Esempio n. 1
0
        public IEnumerator RunSyncAction(IEnumerator action)
        {
            ActorProxy.EnableSeeker(false);
            yield return(action);

            ActorProxy.UpdateSyncPositionToCurrentPosition();
            ActorProxy.EnableSeeker(true);
            SyncAction           = null;
            _syncActionCoroutine = null;
        }
Esempio n. 2
0
        public void StopAllAction()
        {
            StopAI();

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

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