/// <summary> /// Cancels the Future. It will no longer receive Complete or Fail calls. /// </summary> public void Cancel() { if (m_State == FutureState.InProgress) { m_State = FutureState.Cancelled; m_Prophet.Stop(); m_Async.Cancel(); } }
/// <summary> /// Clears the update routine for the object and update phase. /// </summary> static public Routine ClearUpdateRoutine(this MonoBehaviour inHost, RoutinePhase inPhase = RoutinePhase.Update) { Manager m = Manager.Get(); if (m != null) { string phaseName = GetPhaseUpdaterName(inPhase); Routine.Stop(inHost, phaseName); } return(Routine.Null); }