void Awake() { soundDropBall = GameObject.FindWithTag("GameManager").GetComponent <SoundBreaking>(); updateScore = GameObject.FindWithTag("UI").GetComponent <UpdateScore>(); cube = GetComponent <Cube>(); }
void Awake() { soundBallDrop = GameObject.FindWithTag("GameManager").GetComponent <SoundBreaking>(); updateScore = GameObject.FindWithTag("UI").GetComponent <UpdateScore>(); showUI = GameObject.FindWithTag("UI").GetComponent <ShowPanels>(); }