/// Garbage free
        static public IYieldInstruction WaitTime(this object target, float fTime)
        {
            _WaitTime pWaiter = CoroutineMgr._Instance._waitTimePool.Get();

            pWaiter.SetParams(fTime);

            return(pWaiter);
        }
Beispiel #2
0
 /// ---------------
 internal void _FreeTimeWaiter(_WaitTime pWaiter)
 {
     Debugger.Assert(pWaiter.GetRef() == 0);
     _waitTimePool.Free(pWaiter);
 }