Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }