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