// Use this for initialization void Start () { //Looks for name of class/GameObject parent = GameObject.Find("Defenders"); //Looks for gameObject* or component of GameObject, stronger beehiveDisplay = GameObject.FindObjectOfType<BeehiveDisplay>(); if (!parent) { parent = new GameObject("Defenders"); } }
// Use this for initialization void Start() { //Looks for name of class/GameObject parent = GameObject.Find("Defenders"); //Looks for gameObject* or component of GameObject, stronger beehiveDisplay = GameObject.FindObjectOfType <BeehiveDisplay>(); if (!parent) { parent = new GameObject("Defenders"); } }
// Use this for initialization void Start() { beehiveDisplay = GameObject.FindObjectOfType <BeehiveDisplay>(); }
// Use this for initialization void Start () { beehiveDisplay = GameObject.FindObjectOfType<BeehiveDisplay>(); }