Example #1
0
	void Start(){
		GUImgr.Start();
		if (this.GetComponent<PartyMenuPopup> () != null) {
			Debug.Log("partymenu != null");
			partyMenuPopup = gameObject.GetComponent<PartyMenuPopup>();
		} else {
			Debug.Log("partymenu else");
			partyMenuPopup = gameObject.AddComponent<PartyMenuPopup> ();
		}
	}
Example #2
0
 void Start()
 {
     GUImgr.Start();
     if (this.GetComponent <PartyMenuPopup> () != null)
     {
         Debug.Log("partymenu != null");
         partyMenuPopup = gameObject.GetComponent <PartyMenuPopup>();
     }
     else
     {
         Debug.Log("partymenu else");
         partyMenuPopup = gameObject.AddComponent <PartyMenuPopup> ();
     }
 }