[SerializeField] int timesHit; //todo only serialized for debugging // Start is called before the first frame update void Start() { //he refactors this into a method, level = FindObjectOfType <LevelScript>(); if (tag == "Breakable") { level.CountBreakableBlocks(); } }
private void Start() { level = FindObjectOfType <LevelScript>(); level.CountBreakableBlocks(); }