コード例 #1
0
 public void GameOver(GameOverType gameOverType)
 {
     if (!isSliding && gameOverType != GameOverType.Pit)
     {
         playerAnimation.GameOver(gameOverType);
     }
     // ensure the player returns to their original color
     ActivatePowerUp(powerUpManager.GetActivePowerUp(), false);
     collisionParticleSystem.transform.parent = null;
     gameManager.OnPauseGame -= GamePaused;
     // let the character fall if they are still in the air
     jumpSpeed = 0;
     enabled   = InAir();
 }