Exemplo n.º 1
0
    public void OnDestroy()
    {
        if (this.currentMaze != null)
        {
            this.currentMaze.DestroyMaze();
            this.currentMaze = null;
        }

        instance = null;
    }
Exemplo n.º 2
0
 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);
    }