Example #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);
        }
Example #2
0
 public abstract void Update(GameTime gameTime, float speed = 1.0f);
Example #3
0
 public abstract void Update(GameTime gameTime);
Example #4
0
        public override void Update(GameTime gameTime)
        {

        }