// 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!
        }
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     taScoreMan = FindObjectOfType(typeof(TimeAttackScoreManager)) as TimeAttackScoreManager;
 }