2 Commits

2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ public class CameraVehicle : MonoBehaviour
void Update() void Update()
{ {
if(Input.GetKeyDown(KeyCode.LeftAlt)) if(Input.GetKeyDown(KeyCode.V))
moveCam = !moveCam; moveCam = !moveCam;
if(!moveCam) if(!moveCam)
+4 -4
View File
@@ -5,8 +5,8 @@ using UnityEngine;
public class Game : MonoBehaviour public class Game : MonoBehaviour
{ {
public GUISkin Skin; public GUISkin Skin;
const float TopElemWidth = 50f; float TopElemWidth = Screen.width / 19f;
const float TopElemHeight = 20f; float TopElemHeight = Screen.height / 38;
bool fileMenu = false; bool fileMenu = false;
bool fileOpenMenu = false; bool fileOpenMenu = false;
string fileOpenUrl = "http://gitea.moe/lamp/whirlds/raw/branch/master/Geiodo/bagels_skate_park.utw"; string fileOpenUrl = "http://gitea.moe/lamp/whirlds/raw/branch/master/Geiodo/bagels_skate_park.utw";
@@ -87,10 +87,10 @@ public class Game : MonoBehaviour
private void ShowFileOpenMenu() private void ShowFileOpenMenu()
{ {
fileOpenUrl = GUI.TextField( fileOpenUrl = GUI.TextField(
new Rect(TopElemWidth, TopElemHeight * 2, 300, TopElemHeight), new Rect(TopElemWidth, TopElemHeight * 2, TopElemWidth * 3, TopElemHeight),
fileOpenUrl); fileOpenUrl);
if(GUI.Button( if(GUI.Button(
new Rect(TopElemWidth + 300, TopElemHeight * 2, TopElemWidth, TopElemHeight), new Rect(TopElemWidth * 4, TopElemHeight * 2, TopElemWidth, TopElemHeight),
"Submit")) "Submit"))
{ {
if(!GameObject.Find("WhirldBuffer") && fileOpenTimeout <= 0) if(!GameObject.Find("WhirldBuffer") && fileOpenTimeout <= 0)