示例#1
0
 private void UpdateWording()
 {
     if (settingsManager.isFrench())
     {
         playButton.text     = (gameMaster.currentGameState == GameState.Menu) ? "Jouer!" : "Continuer";
         languageButton.text = "Langue: Français";
         soundButton.text    = "Son: " + (settingsManager.soundEnabled ? "On" : "Off");
         quitButton.text     = (gameMaster.currentGameState == GameState.Menu) ? "Quitter" : "Retour au Menu";
         soundButton.text    = "Son" + ": " + (settingsManager.soundEnabled ? "On" : "Off");
     }
     else
     {
         playButton.text     = (gameMaster.currentGameState == GameState.Menu) ? "Play!" : "Resume";
         languageButton.text = "Language: English";
         soundButton.text    = "Sound: " + (settingsManager.soundEnabled ? "On" : "Off");
         quitButton.text     = (gameMaster.currentGameState == GameState.Menu) ? "Quit" : "Back to Menu";
         soundButton.text    = "Sound" + ": " + (settingsManager.soundEnabled ? "On" : "Off");
     }
     tutorialPanel.UpdateWording(settingsManager.isFrench());
     credits.UpdateWording(settingsManager.isFrench());
 }