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); }
public WaitingOperation SetOpCurr(WaitingOperation op) { op.SetStartTimeMS(ExecutedTime); return(m_opCurr = op); }