void Start() { manager = gameObject.GetComponent <mainManager> (); uimanager = gameObject.GetComponent <guiManager> (); generator = gameObject.GetComponent <enemyGenerator> (); if (GameObject.Find("missionCollector") != null) { logger = GameObject.Find("missionCollector").GetComponent <missionLog> (); } if (Comers != null) { } Comers = GameObject.Find("comers").GetComponent <comersScript> (); deathmanager = gameObject.transform.Find("deathController").GetComponent <deathControl> (); levelTime = manager.levelTime; manager.isPaused = true; uimanager.startl(); NGUITools.SetActive(points.gameObject, false); if (GoogleAnalytics.instance) { GoogleAnalytics.instance.LogScreen("Cat Game Menu"); } }
void Start() { manager = GameObject.Find("Manager").GetComponent <mainManager> (); deathcontroller = GameObject.Find("Manager/deathController").GetComponent <deathControl> (); if (GameObject.Find("missionCollector") != null) { loger = GameObject.Find("missionCollector").GetComponent <missionLog>(); } }