private void Countbrekblock() { levels = FindObjectOfType <level>(); if (tag == "Breakabke") { levels.CountBreakableBlocks(); } }
private void countBreakableBlocks() { levels = FindObjectOfType <level>(); if (tag == "breakable") { levels.CountBreakableBlocks(); } }
// Use this for initialization public void Start() { level = FindObjectOfType <level>(); game = FindObjectOfType <GameSession>(); if (tag == "Breakable") { level.CountBreakableBlocks(); } }
private void Start() { lev = FindObjectOfType <level>(); if (tag == "Breakable") { lev.CountBreakableBlocks(); } gameStatus = FindObjectOfType <GameStatus>(); }
private void Start() { level = FindObjectOfType <level>(); level.CountBreakableBlocks(); }