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

            pWaiter.SetParams(fTime);

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