コード例 #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);
     }
 }
コード例 #2
0
 void Awake()
 {
     instance = this;
 }