// Use this for initialization void Start() { Debug.Log("Start"); blockSceneManager = GameObject.FindObjectOfType <BlockSceneManager>(); timesHits = 0; // check if current instance has breakable tag. isBreakable = (this.tag == "Breakable"); if (isBreakable) { // increment variable of total breakable bricks breakableCount++; } }
void Start() { blockSceneManager = GameObject.FindObjectOfType <BlockSceneManager>(); }
// Use this for initialization void Start() { Debug.Log ("Start"); blockSceneManager = GameObject.FindObjectOfType<BlockSceneManager>(); timesHits = 0; // check if current instance has breakable tag. isBreakable = (this.tag == "Breakable"); if(isBreakable) { // increment variable of total breakable bricks breakableCount++; } }