Beispiel #1
0
 void Awake()
 {
     managerBlocks      = GameObject.FindGameObjectWithTag("Game_blocks").GetComponent <blocksManager>();
     nextBlock          = GameObject.FindGameObjectWithTag("Game_nextBlocks").GetComponent <nextBlockController>();
     managerArena       = GameObject.FindGameObjectWithTag("Game_arena").GetComponent <Arena>();
     endGame            = GameObject.FindGameObjectWithTag("Game_end").GetComponent <EndGame>();
     controllerSettings = GameObject.FindGameObjectWithTag("Settings");
     GetComponent <InputButton>().initiate(endGame, managerBlocks);
     GetComponent <InputSwipe>().initiate(endGame, managerBlocks, controllerSettings.GetComponent <Settings>());
     GetComponent <InputTap>().initiate(endGame, managerBlocks, controllerSettings.GetComponent <Settings>());
     gameObject.SetActive(false);
 }
Beispiel #2
0
 void Awake()
 {
     nextBlock = GameObject.FindGameObjectWithTag("Game_nextBlocks").GetComponent <nextBlockController>();
     endGame   = GameObject.FindGameObjectWithTag("Game_end").GetComponent <EndGame>();
 }