public void Play() { if (playerNameInp) { GameController.PlayerName = playerNameInp.text; } Data.PlayerName.Set(GameController.PlayerName); LeaderBoardData.SetPlayerData(GameController.PlayerName); A.GC.Play(); }
public void Play() { if (playerNameInp.NotNull()) { GameController.PlayerName = playerNameInp.text; } A.SetData(Data.PlayerName, GameController.PlayerName); LeaderBoardData.SetPlayerData(GameController.PlayerName); A.GC.Play(); }