Here are the examples of the csharp api class UnityEngine.Input.GetKeyUp(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
6 Examples
0
1. Example
Project: IR-Sequencer
Source File: ModuleSequencer.cs
Source File: ModuleSequencer.cs
protected bool KeyUnPressed(string key) { return (key != "" && InputLockManager.IsUnlocked(ControlTypes.LINEAR) && Input.GetKeyUp(key)); }
0
2. Example
Project: InfernalRobotics
Source File: ModuleIRServo.cs
Source File: ModuleIRServo.cs
protected bool KeyUnPressed(string key) { return (key != "" && vessel == FlightGlobals.ActiveVessel && InputLockManager.IsUnlocked(ControlTypes.LINEAR) && Input.GetKeyUp(key)); }
0
3. Example
Project: synthesis
Source File: InputControl.cs
Source File: InputControl.cs
public static bool GetKeyUp(string name) { return Input.GetKeyUp(name); }
0
4. Example
Project: Uniject
Source File: UnityInput.cs
Source File: UnityInput.cs
public bool GetKeyUp(string name) { return Input.GetKeyUp(name); }
0
5. Example
Project: UnityHello
Source File: UnityEngine_InputWrap.cs
Source File: UnityEngine_InputWrap.cs
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetKeyUp(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.KeyCode))) { UnityEngine.KeyCode arg0 = (UnityEngine.KeyCode)ToLua.ToObject(L, 1); bool o = UnityEngine.Input.GetKeyUp(arg0); LuaDLL.lua_pushboolean(L, o); return 1; } else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string))) { string arg0 = ToLua.ToString(L, 1); bool o = UnityEngine.Input.GetKeyUp(arg0); LuaDLL.lua_pushboolean(L, o); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Input.GetKeyUp"); } } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } }
0
6. Example
Project: TappyPlane
Source File: Player.cs
Source File: Player.cs
void Update () { // Jump if (Input.GetKeyUp("space")) { rigidbody2D.velocity = Vector2.zero; rigidbody2D.AddForce(jumpForce); } // Die by being off screen Vector2 screenPosition = Camera.main.WorldToScreenPoint(transform.position); if (screenPosition.y > Screen.height || screenPosition.y < 0) { Die(); } }