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> (); } }
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> (); } }