public void OnDestroy() { if (this.currentMaze != null) { this.currentMaze.DestroyMaze(); this.currentMaze = null; } instance = null; }
public void InitMaze() { this.currentMaze = new PipeMaze(this.PickRandomJunction()); }