CoroutineSharp.CoroutineManager.Remove C# (CSharp) Method

Remove() public method

public Remove ( Coroutine coroutine ) : void
coroutine Coroutine
return void
        public void Remove(Coroutine coroutine)
        {
            if (coroutine.ID == 0)
            {
                return;
            }

            coroutinesDict.Remove(coroutine.ID);
        }
        public void Add(Coroutine coroutine)

Usage Example

Esempio n. 1
0
        private bool NextStep()
        {
            //LogConsole.Debug("Coroutine.NextStep");

            if (disposed)
            {
                return(false);
            }

            if (MoveNext())
            {
                CheckYield();
                return(true);
            }
            else
            {
                coroutineManager.Remove(this);
                Dispose();
                return(false);
            }
        }