Exemplo n.º 1
0
 protected override void Update()
 {
     base.Update();
     if (isAlive && controller.CheckIfLanded())
     {
         landingParticleSystem.PlaceGroundParticle(Position - new Vector2(0, sprite.Height / 2));
     }
     isAlive = true;
     // Store the last direction so the sprite is correct when the game is paused
     lastInput = InputManager.Direction;
 }