private static void TickState(EditorCoroutineState state)
 {
     if (state.IsValid)
     {
         // This coroutine is still valid, give it a chance to tick!
         state.Tick();
     }
     else
     {
         // We have finished running the coroutine, lets scrap it
         finishedThisUpdate.Add(state);
     }
 }
Esempio n. 2
0
        private static void TickState(EditorCoroutineState state)
        {
            if (state.IsValid)
            {
                // This coroutine is still valid, give it a chance to tick!
                state.Tick();

                // if this coroutine is the active UI coroutine, give it a chance to update the UI
                if (state.showUI && uiCoroutineState == state)
                {
                    uiCoroutineState.UpdateUI();
                }
            }
            else
            {
                // We have finished running the coroutine, lets scrap it
                finishedThisUpdate.Add(state);
            }
        }