private void Start()
 {
     ball        = FindObjectOfType <Ball>();
     timerText   = FindObjectOfType <timerText>();
     gameSession = FindObjectOfType <GameSession>();
     stgName     = SceneManager.GetActiveScene().name;
     CheckNumOfBlocks("Block"); //TODO NOTE that the tag is hard coded
     ShowRequiredBlocks();
     Invoke("StageReady", 2.0f);
 }
Exemple #2
0
 private void Start()
 {
     ball      = FindObjectOfType <Ball>();
     timerText = FindObjectOfType <timerText>();
     CheckNumOfBlocks("Block"); //TODO NOTE that the tag is hard coded
     ShowRequiredBlocks();
     StartCoroutine(InactivateStageReady());
     Invoke("TitleImageFinishedAndLetGo", 2.0f);
     //Debug.Log(numblockObjects.Length);
 }