// 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");
     }
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     beehiveDisplay = GameObject.FindObjectOfType <BeehiveDisplay>();
 }
Example #4
0
	// Use this for initialization
	void Start () {
        beehiveDisplay = GameObject.FindObjectOfType<BeehiveDisplay>();
	}