예제 #1
0
    public void delayDo(Fix64 time, ActionCallback cb, string label = null)
    {
        DelayDo delayDoAction = new DelayDo();

        delayDoAction.init(time, cb);

        if (label != null)
        {
            delayDoAction.label = label;
        }
        actionManager.addAction(delayDoAction);
    }
예제 #2
0
    //- 延迟执行方法
    //
    // @param time 要延迟的时间
    // @param cb 时间到了以后的回调函数
    // @param label 延迟动作对象的标签(用于停止延迟动作)
    // @return none
    public void delayDo(Fix64 time, ActionCallback cb, string label = null)
    {
        DelayDo delaydoAction = new DelayDo();

        delaydoAction.init(time, cb);

        if (null != label)
        {
            delaydoAction.setLabel(label);
        }

        m_actionManager.addAction(delaydoAction);
    }