Пример #1
0
 /// <summary>
 /// Links a Routine to the Future.
 /// If the Routine stops, the Future will fail.
 /// If the Future is cancelled, the Routine will Stop.
 /// </summary>
 public Future LinkTo(Routine inRoutine)
 {
     if (!m_Prophet && m_State == FutureState.InProgress)
     {
         m_Prophet = inRoutine;
         m_Prophet.OnStop(OnLinkedStopped);
     }
     return(this);
 }