// Use this for initialization void Start() { taLvlMan = FindObjectOfType(typeof(TimeAttackLevelManager)) as TimeAttackLevelManager; desMapEff = FindObjectOfType(typeof(DestroyMapEffect)) as DestroyMapEffect; lvlInf = FindObjectOfType(typeof(LevelInfo)) as LevelInfo; if (lvlInf) { taGUIlvlUI = FindObjectOfType(typeof(TimeAttackGUILevelUI)) as TimeAttackGUILevelUI; } }
// Use this for initialization void Start() { touchManager = FindObjectOfType(typeof(TouchManager)) as TouchManager; taScoreMan = FindObjectOfType(typeof(TimeAttackScoreManager)) as TimeAttackScoreManager; tALvlCreator = FindObjectOfType(typeof(TimeAttackLevelCreator)) as TimeAttackLevelCreator; taLvlUI = FindObjectOfType(typeof(TimeAttackGUILevelUI)) as TimeAttackGUILevelUI; desMapEff = FindObjectOfType(typeof(DestroyMapEffect)) as DestroyMapEffect; sceneCanvas = (Canvas)FindObjectOfType(typeof(Canvas)); StartCoroutine(taLvlUI.CountDown()); if (taLvlUI != null) { taLvlUI.ShowStarBar(true); taLvlUI.UpdateStarRequirement(numberOfConnectionsFor1star, tALvlCreator.lvlSize - 1); //minus 1 fordi start ikke tæller med! } }