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; }
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; }