示例#1
0
        static public IYieldInstruction DoUpdateUntil <T>(this object target, Action updateHandler, Signal <T> signal, float fTimeOut = float.PositiveInfinity)
        {
            _WaitSignal <T> pWaiter = new _WaitSignal <T>();

            pWaiter.SetParams(signal, fTimeOut, updateHandler);
            return(pWaiter);
        }
示例#2
0
        static public IYieldInstruction WaitUntil <T>(this object target, Signal <T> signal, float fTimeOut = float.PositiveInfinity)
        {
            _WaitSignal <T> pWaiter = new _WaitSignal <T>();

            pWaiter.SetParams(signal, fTimeOut, null);
            return(pWaiter);
        }
示例#3
0
        /// Garbage free
        static public IYieldInstruction WaitUntil(this object target, Signal signal, float fTimeOut = float.PositiveInfinity)
        {
            _WaitSignal pWaiter = CoroutineMgr._Instance._waitSignalPool.Get();

            pWaiter.SetParams(signal, fTimeOut, null);
            return(pWaiter);
        }