private void Start() { if (tag == "Breakable") { lvl = FindObjectOfType <Lvl>(); lvl.CountBreakableBlocks(); } }
private void Start() { if (gameObject.tag == "Breakable") { lvl = FindObjectOfType <Lvl>(); lvl.CountBreakableBlocks(); } gameStatus = FindObjectOfType <GameStatus>(); }