// Use this for initialization void Start() { canBeDestroyed = (this.tag == "Breakable"); if (canBeDestroyed) { brickToBreak = brickToBreak + 1; // or bricktobreak++; couse of this we will know how many bricks to break we have } hits = 0; Manager = GameObject.FindObjectOfType <lvlMng> (); }
void Start() { levelMng = GameObject.FindObjectOfType <lvlMng>(); }