コード例 #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);
 }