private void Update() { float z = Camera.main.transform.localPosition.z; if (Input.GetKeyDown(KeyCode.Z)) { Camera.main.transform.localPosition = new Vector3(0, 0, z - 5); } if (Input.GetKeyDown(KeyCode.X)) { Camera.main.transform.localPosition = new Vector3(0, 0, z + 5); } if (Input.GetKeyDown(KeyCode.C)) { var col = SceneGlobals.Instance.LightingCamera.GetAmbientLightColor(); Color.RGBToHSV(col, out float h, out float s, out float v); v = Mathf.Clamp01(v + 0.1f); SceneGlobals.Instance.LightingCamera.SetAmbientLightColor(Color.HSVToRGB(h, s, v)); } if (Input.GetKeyDown(KeyCode.V)) { var col = SceneGlobals.Instance.LightingCamera.GetAmbientLightColor(); Color.RGBToHSV(col, out float h, out float s, out float v); v = Mathf.Clamp01(v - 0.1f); SceneGlobals.Instance.LightingCamera.SetAmbientLightColor(Color.HSVToRGB(h, s, v)); } if (Input.GetKeyDown(KeyCode.B)) { float clarity = mapScript_.GetWallClarity(); mapScript_.SetWallClarity(clarity + 0.1f); } if (Input.GetKeyDown(KeyCode.N)) { float clarity = mapScript_.GetWallClarity(); mapScript_.SetWallClarity(clarity - 0.1f); } if (Input.GetKeyDown(KeyCode.O)) { mapScript_.BuildCollisionMapFromFloorTilemap(mapScript_.FloorTileMap); } }