public override void Update(float dt) { this.levelTransitionTween.Update(dt); ProcessInput(dt); transform.Position += Velocity * dt * 60; if (this.readyToStartLevel && Velocity.Y == 0) { this.readyToStartLevel = false; StartNextLevel(); } CurrentTextCrawl?.Update(dt); }
public override void OnMouseButton(MouseButton button, Vector2 currentPosition, ButtonState state) { if (state == ButtonState.Pressed) { if (CurrentTextCrawl != null) { if (!CurrentTextCrawl.IsFinished) { CurrentTextCrawl.SkipToEnd(); } else { CurrentTextCrawl = null; } } } }