Пример #1
0
    public void AddExecutorNoUpdate(CExecutor childExecutor)
    {
        if (!childExecutor.IsPlaying())
        {
            base.AddExecutor(childExecutor);

            // 运行模式下动态插入
            if (this.ExeState == eExeState.Exe_Running)
            {
                childExecutor.Play();
            }
        }
    }
Пример #2
0
    public override void AddExecutor(CExecutor childExecutor)
    {
        if (!childExecutor.IsPlaying())
        {
            base.AddExecutor(childExecutor);

            // 运行模式下动态插入
            if (this.ExeState == eExeState.Exe_Running)
            {
                childExecutor.Play();

                //childExecutor.Update(this.currentTime - this.StartTime);
            }
        }
        else
        {
            //TODO
        }
    }
Пример #3
0
    protected override bool updateImp(float fDeltaTime)
    {
        bool bOver = false;

        if (IsPlaying())
        {
            if (null != mCurExecutor)
            {
                mCurExecutor.Update(fDeltaTime);
                if (!mCurExecutor.IsPlaying())
                {
                    bOver = true;
#if DEBUG && !PROFILER
                    ///        Debug.Log("当前执行器结束");
#endif
                }
            }
        }
        return(bOver);
    }