public IEnumerator RunSyncAction(IEnumerator action) { ActorProxy.EnableSeeker(false); yield return(action); ActorProxy.UpdateSyncPositionToCurrentPosition(); ActorProxy.EnableSeeker(true); SyncAction = null; _syncActionCoroutine = null; }
public void StopAllAction() { StopAI(); if (SyncAction != null) { SyncAction.OnActionCancel(ActorProxy); ActorProxy.UpdateSyncPositionToCurrentPosition(); SyncAction = null; } if (_syncActionCoroutine != null) { StopCoroutine(_syncActionCoroutine); _syncActionCoroutine = null; } }