Example #1
0
 private void Start()
 {
     if (tag == "Breakable")
     {
         lvl = FindObjectOfType <Lvl>();
         lvl.CountBreakableBlocks();
     }
 }
Example #2
0
    private void Start()
    {
        if (gameObject.tag == "Breakable")
        {
            lvl = FindObjectOfType <Lvl>();
            lvl.CountBreakableBlocks();
        }

        gameStatus = FindObjectOfType <GameStatus>();
    }