예제 #1
0
    void Update()
    {
        //Debug.LogError(gameTime.Advance(Time.deltaTime));
        //Debug.LogError(gameTime.Limit);//设置的极限时间
        //Debug.LogError(gameTime.ElapsedTime);//总共经过的时间
        //Debug.LogError(gameTime.WrappedElapsedTime);//每次到达极限经过的时间
        //Debug.LogError(gameTime.SaturatedElapsedTime);//总共经过的时间与极限时间的最小值
        //Debug.LogError(gameTime.SaturatedElapsedRate);//到达极限时间的完成百分比,当前时间完成极限时间的百度分比
        //Debug.LogError(gameTime.TimeOutCount);//完成次数
        //Debug.LogError(gameTime.GetLeftTime());//获得倒计时时间

        gameTime.Advance(Time.deltaTime);
        if (gameTime.TimeOutCount > 0)
        {
            Debug.LogError("时间到");
        }
    }
예제 #2
0
        public bool Update()
        {
            if (_TimerEntity != null)
            {
                _TimerEntity.Advance(Time.deltaTime);

                if (_TimerEntity.TimeOutCount > 0)
                {
                    if (_Callback != null)
                    {
                        _Callback(_Params);
                    }
                    return(true);
                }
            }
            return(false);
        }
예제 #3
0
    public override void Execute()
    {
        if (_Pinching)
        {
            return;
        }

        _NoOperationTimer.Advance(Time.deltaTime);
        if (_NoOperationTimer.TimeOutCount > 0)
        {
            mEntity.GoToBounce(0);
        }


        mEntity.KeepMidFov();
        mEntity.KeepMinSpeed();
        base.Execute();
    }