Mercurial > hg > Members > kazuma > JungleforUnity
diff Assets/Application/Scripts/InputManager.cs @ 3:2dd40b4412e4
Create game base.
author | Kazuma |
---|---|
date | Mon, 07 Nov 2016 18:42:01 +0900 |
parents | e5ef0342d00b |
children |
line wrap: on
line diff
--- a/Assets/Application/Scripts/InputManager.cs Mon Nov 07 02:05:00 2016 +0900 +++ b/Assets/Application/Scripts/InputManager.cs Mon Nov 07 18:42:01 2016 +0900 @@ -7,6 +7,7 @@ public float InputX = 0f; public float InputZ = 0f; public bool ClickMouse = false; + public bool ClickSpace = false; // Use this for initialization void Start () { @@ -28,4 +29,8 @@ public bool InputMouseButton () { return Input.GetMouseButton (0); } + + public bool InputSpace () { + return Input.GetKeyDown (KeyCode.Space); + } }