Exemplo n.º 1
0
 public static void Execute()
 {
     if (CollabTesting._enumerator != null)
     {
         if (!Collab.instance.AnyJobRunning())
         {
             try
             {
                 if (!CollabTesting._enumerator.MoveNext())
                 {
                     CollabTesting.End();
                 }
                 else
                 {
                     CollabTesting._nextState = CollabTesting._enumerator.Current;
                 }
             }
             catch (Exception)
             {
                 Debug.LogError("Something Went wrong with the test framework itself");
                 throw;
             }
         }
     }
 }
Exemplo n.º 2
0
 public static void OnAssetUpdate()
 {
     if ((CollabTesting._nextState & CollabTesting.AsyncState.WaitForAssetUpdate) != CollabTesting.AsyncState.NotWaiting)
     {
         CollabTesting._nextState &= ~CollabTesting.AsyncState.WaitForAssetUpdate;
         if (CollabTesting._nextState == CollabTesting.AsyncState.NotWaiting)
         {
             CollabTesting.Execute();
         }
     }
 }
Exemplo n.º 3
0
 private static void OnAsyncSignalReceived(CollabTesting.AsyncState stateToRemove)
 {
     if ((CollabTesting._nextState & stateToRemove) != CollabTesting.AsyncState.NotWaiting)
     {
         CollabTesting._nextState &= ~stateToRemove;
         if (CollabTesting._nextState == CollabTesting.AsyncState.NotWaiting)
         {
             CollabTesting.Execute();
         }
     }
 }
Exemplo n.º 4
0
 public static void OnCompleteJob()
 {
     if ((CollabTesting._nextState & CollabTesting.AsyncState.WaitForJobComplete) != CollabTesting.AsyncState.NotWaiting)
     {
         CollabTesting._nextState &= ~CollabTesting.AsyncState.WaitForJobComplete;
         if (CollabTesting._nextState == CollabTesting.AsyncState.NotWaiting)
         {
             CollabTesting.Execute();
         }
     }
 }