Пример #1
0
    public void SetMazeHeight()
    {
        int inputValue = ToolMethods.SetEvenNumberToOdd(ToolMethods.GetIntValueFromInputField(mazeHeightInputField));

        mazeDimensions = new Vector2Int(mazeDimensions.x, inputValue);
    }
Пример #2
0
    //maze value setters for button functions
    public void SetMazeWidth()
    {
        int inputValue = ToolMethods.SetEvenNumberToOdd(ToolMethods.GetIntValueFromInputField(mazeWidthInputField));

        mazeDimensions = new Vector2Int(inputValue, mazeDimensions.y);
    }