示例#1
0
文件: Proc.cs 项目: zkrzhangdb/UniKh
        public Proc Delay(WaitingOperation waitionOp)
        {
            if (!CSP.Inst)
            {
                Debug.LogError("UniKH/CSP/Proc: delay proc failed, CSP are not loaded.");
            }

            if (isActive)
            {
                Debug.LogError("UniKH/CSP/Proc: delay proc failed, this proc is currently running.");
            }

            if (GetOpCurr() != null)
            {
                Debug.LogError(
                    "UniKH/CSP/Proc: delay proc failed, delay object are already set. Maybe you can use QueueJumping to achieve similar effects.");
            }

            m_opCurr = waitionOp;
            m_opCurr.SetStartTimeMS(CSP.Inst.sw.ElapsedMilliseconds);
            return(this);
        }
示例#2
0
文件: Proc.cs 项目: zkrzhangdb/UniKh
 public WaitingOperation SetOpCurr(WaitingOperation op)
 {
     op.SetStartTimeMS(ExecutedTime);
     return(m_opCurr = op);
 }