コード例 #1
0
    public void Start()
    {
        resolutionManager = this;

        /*_Resolution = resolutionType.big;
         * Screen.SetResolution(1920, 1080, FullScreenMode.Windowed);*/
        _Resolution = resolutionType.big;
        Screen.SetResolution(1920, 1080, FullScreenMode.Windowed);
        SetBigUi();
        MousePointer.mousePointer.UpdateMapRect();
    }
コード例 #2
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.P))
        {
            _Resolution = resolutionType.small;
            Screen.SetResolution(1280, 720, FullScreenMode.Windowed);
            SetUiSmall();
            MousePointer.mousePointer.UpdateMapRect();

            DungeonGenerator.dungeonGenerator.DrawMap(MapManager.map);
        }

        if (Input.GetKeyDown(KeyCode.O))
        {
            _Resolution = resolutionType.big;
            Screen.SetResolution(1920, 1080, FullScreenMode.Windowed);
            SetBigUi();
            MousePointer.mousePointer.UpdateMapRect();

            DungeonGenerator.dungeonGenerator.DrawMap(MapManager.map);
        }
    }
コード例 #3
0
    protected internal override void NodeGUI()
    {
        Outputs[0].DisplayLayout();

        type = (resolutionType)EditorGUILayout.EnumPopup(type);

        if (GUI.changed)
        {
            NodeEditor.RecalculateFrom(this);
        }
    }