// Use this for initialization
 void Start()
 {
     toggleEndScreen = GameObject.FindGameObjectWithTag("ToggleEndGameScreen").GetComponent<ToggleEndGameScreen>();
     cooldownDelay = GameObject.FindGameObjectWithTag("GameSpeed").GetComponent<GameSpeed>().gameSpeed;
     uiData = GameObject.FindGameObjectWithTag("UIData").GetComponent<ScoreUI>();
     gridHandler = GameObject.FindGameObjectWithTag("GridHandler").GetComponent<Tilegrid>();
     currentLvlData = gridHandler.lvl;
     mainCamera = GameObject.FindGameObjectWithTag("MainCamera");
 }
 // Use this for initialization
 void Start()
 {
     toggleEndScreen = GameObject.FindGameObjectWithTag("ToggleEndGameScreen").GetComponent <ToggleEndGameScreen>();
     cooldownDelay   = GameObject.FindGameObjectWithTag("GameSpeed").GetComponent <GameSpeed>().gameSpeed;
     uiData          = GameObject.FindGameObjectWithTag("UIData").GetComponent <ScoreUI>();
     gridHandler     = GameObject.FindGameObjectWithTag("GridHandler").GetComponent <Tilegrid>();
     currentLvlData  = gridHandler.lvl;
     mainCamera      = GameObject.FindGameObjectWithTag("MainCamera");
 }
 // Use this for initialization
 void Start()
 {
     cooldownDelay = GameObject.FindGameObjectWithTag("GameSpeed").GetComponent<GameSpeed>().gameSpeed;
     gridHandler = GameObject.FindGameObjectWithTag("GridHandler").GetComponent<Tilegrid>();
     currentLvlData = gridHandler.lvl;
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     cooldownDelay  = GameObject.FindGameObjectWithTag("GameSpeed").GetComponent <GameSpeed>().gameSpeed;
     gridHandler    = GameObject.FindGameObjectWithTag("GridHandler").GetComponent <Tilegrid>();
     currentLvlData = gridHandler.lvl;
 }