Пример #1
0
    //sets the roomid, and the grid x, y
    public void Set(int roomID, int x, int y, bool openLeft, bool openRight, bool openUp, bool openDown)
    {
        this.roomID = roomID;
        this.gridx  = x;
        this.gridy  = y;

        //Debug.Log("Left: " + openLeft + " Right: " + openRight + " Up: " + openUp + " Down: " + openDown);

        leftDoor.ToggleLock(!openLeft);
        rightDoor.ToggleLock(!openRight);
        upDoor.ToggleLock(!openUp);
        downDoor.ToggleLock(!openDown);
    }