private void OnTriggerEnter(Collider other)//the goal only resets the maze when its made contact with the marble. { if (other.gameObject.tag == "marble") { mazeGenerator.CreateWalls(); marbleCreator.CreateMarble(); } }
private void OnTriggerEnter(Collider other)//the goal only resets the maze when its made contact with the marble. { if (other.gameObject.tag == "marble") { mazeGenerator.CreateWalls(); marbleCreator.CreateMarble(); } }