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(); }
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); } }
protected internal override void NodeGUI() { Outputs[0].DisplayLayout(); type = (resolutionType)EditorGUILayout.EnumPopup(type); if (GUI.changed) { NodeEditor.RecalculateFrom(this); } }