Example #1
0
 private void Start()
 {
     cellInteractor = GetComponent <MineSweeperCellInteractor>();
     grid           = GameObject.FindGameObjectWithTag("grid").GetComponent <MineSweeperGrid>();
 }
 private void Start()
 {
     cellInteractor   = GetComponent <MineSweeperCellInteractor>();
     grid             = GameObject.FindGameObjectWithTag("grid").GetComponent <MineSweeperGrid>();
     mineCounter.text = grid.getCountUnfoundMines().ToString();
 }