Exemple #1
0
 void Awake()
 {
     EventCoordinator.StartListening(EventName.Input.StartGame(), OnStartGame);
     inputName = PlayerPrefs.GetString("playerName");
     if (inputName != "")
     {
         GetComponentInChildren <TMP_InputField>().text = inputName;
         PlayerDataBucket.SetPlayerName(inputName);
     }
 }
Exemple #2
0
 public void InputEditedCallback(string _inputName)
 {
     Debug.Log("field trigger");
     inputName = _inputName;
     PlayerDataBucket.SetPlayerName(inputName);
 }