Exemplo n.º 1
0
 void OnDisable()
 {
     for (int i = 0; i < nothingUpdate.Length; i++)
     {
         UpdaterAPI.RemoveUpdateCallback(nothingUpdate[i]);
     }
     started = false;
 }
Exemplo n.º 2
0
 void OnEnable()
 {
     if (jobs == null || jobs.Length != arraySize)
     {
         jobs = new Ashkatchap.Scheduler.QueuedJob[arraySize];
     }
     firstUpdate  = UpdaterAPI.AddUpdateCallback(UpdateMethod1Cached, QueueOrder.Update, 127);
     secondUpdate = UpdaterAPI.AddUpdateCallback(UpdateMethod2Cached, QueueOrder.Update, 128);
     started      = true;
 }
Exemplo n.º 3
0
 void OnEnable()
 {
     if (nothingUpdate == null || nothingUpdate.Length != arraySize)
     {
         nothingUpdate = new FrameUpdateReference[arraySize];
     }
     for (int i = 0; i < nothingUpdate.Length; i++)
     {
         nothingUpdate[i] = UpdaterAPI.AddUpdateCallback(DoNothingCached, QueueOrder.PostUpdate);
     }
     started = true;
 }
Exemplo n.º 4
0
 void OnDisable()
 {
     UpdaterAPI.RemoveUpdateCallback(firstUpdate);
     UpdaterAPI.RemoveUpdateCallback(secondUpdate);
     started = false;
 }