// Use this for initialization void Start() { translation = TranslationLoader.getInstance().getTranslation(); P1NAME = PlayerPrefs.GetString("P1NAME"); P2NAME = PlayerPrefs.GetString("P2NAME"); P1NameLabel.text = P1NAME; P2NameLabel.text = P2NAME; P1score = Options.beginningPoints; P2score = Options.beginningPoints; P1ScoreField.text = P1score.ToString(); P2ScoreField.text = P2score.ToString(); distributeScores(); round = 0; if (PlayerPrefs.GetInt("turn") == 1) { p1turn = true; TurnText.text = (P1NAME + this.translation.scenes.Game.Turn); } else { p1turn = false; TurnText.text = (P2NAME + this.translation.scenes.Game.Turn); } }
void Start() { this.loader = TranslationLoader.getInstance(); this.loadTextFields(); }