// ------------------------------------------------------------------------- public virtual void OnArriveEvent(PathNodeEvent aEvent) { if (aEvent != null) { aEvent.ProcessEvent(gameObject); } }
// ------------------------------------------------------------------------- protected IEnumerator Process(GameObject aGameObject) { if (mDelayBefore > 0) { yield return(new WaitForSeconds(mDelayBefore)); } DoProcess(aGameObject); if (mDelayAfter > 0) { yield return(new WaitForSeconds(mDelayAfter)); } if (mNextEvent != null) { mNextEvent.ProcessEvent(aGameObject); } }