コード例 #1
0
ファイル: Resetter.cs プロジェクト: ExcaliburSama/PerfectMaze
 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();
     }
 }