public void UpdateName(string name) { _name = name; ApplicationSceneController.Instance().UpdateUserName(name); Debug.Log(_name); //PlayAnimation _AcceptButton.enabled = (_name != null); }
public static ApplicationSceneController Instance() { if (_instance == null) { GameObject obj = new GameObject(); obj.name = "SceneController"; _instance = obj.AddComponent <ApplicationSceneController>(); } return(_instance); }
void Awake() { ApplicationSceneController.Instance()._OnSceneChange += UIViewState__OnSceneChange; }
public void TriggerTrainingSelection() { ApplicationSceneController.Instance().TriggerStateChange(SceneNames.Selection); }