public void OnDestroy() { if (this.currentMaze != null) { this.currentMaze.DestroyMaze(); this.currentMaze = null; } instance = null; }
public void Awake() { instance = this; }
public void AddLink(GameObject anchorObject) { PipeMazeLink link = new PipeMazeLink(anchorObject, PipeMazeManager.Instance().PickRandomPipe(), PipeMazeManager.Instance().PickRandomJunction()); this.links.Add(link); }