Пример #1
0
 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();
     }
 }