示例#1
0
        public override void Update(GameTime gameTime)
        {
            if (Out != null)
            {
                if (Out.IsFinished != _oldState && OnHalf != null)
                    OnHalf();
                _oldState = Out.IsFinished;
            }

            if (InitialState != null && Out != null && !Out.IsFinished)
                Out.Update(gameTime, OutSpeed);
            else if (TargetState != null && In != null && !In.IsFinished)
                In.Update(gameTime, InSpeed);
            else
                _engine.SwitchState(TargetState);
        }
示例#2
0
 public abstract void Update(GameTime gameTime, float speed = 1.0f);
示例#3
0
 public abstract void Update(GameTime gameTime);
示例#4
0
        public override void Update(GameTime gameTime)
        {

        }