Esempio n. 1
0
    [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();
        }
    }
Esempio n. 2
0
 private void Start()
 {
     level = FindObjectOfType <LevelScript>();
     level.CountBreakableBlocks();
 }