public void openMenu() { references = ElementReferences.instance; gameObject.SetActive(true); if (HttpClient.instance.isSignedIn) { references.getGameObject("user stats button").SetActive(true); references.getGameObject("user stats button").GetComponentInChildren <Text> ().text = api.user.name; } else { references.getGameObject("user stats button").SetActive(false); } }
void Awake() { instance = this; }