示例#1
0
 /// <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();
     }
 }
示例#2
0
        /// <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);
        }