public void Control(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.LeftControl) || Input.GetKeyDown(KeyCode.RightControl))
     {
         action();
     }
 }
 public void R(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.R))
     {
         action();
     }
 }
 public void CapsLock(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.CapsLock))
     {
         action();
     }
 }
 public void Shift(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.LeftShift) || Input.GetKeyDown(KeyCode.RightShift))
     {
         action();
     }
 }
 public void Escape(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         action();
     }
 }
 public void Backspace(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Backspace))
     {
         action();
     }
 }
 public void LeftMouseButton(InputDelegate_Button action)
 {
     if (Input.GetMouseButtonDown(0))
     {
         action();
     }
 }
 public void Three(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha3) || Input.GetKeyDown(KeyCode.Keypad3))
     {
         action();
     }
 }
 public void Seven(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha7) || Input.GetKeyDown(KeyCode.Keypad7))
     {
         action();
     }
 }
Beispiel #10
0
 public void Eight(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha8) || Input.GetKeyDown(KeyCode.Keypad8))
     {
         action();
     }
 }
Beispiel #11
0
 public void Six(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha6) || Input.GetKeyDown(KeyCode.Keypad6))
     {
         action();
     }
 }
Beispiel #12
0
 public void Five(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha5) || Input.GetKeyDown(KeyCode.Keypad5))
     {
         action();
     }
 }
Beispiel #13
0
 public void Four(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha4) || Input.GetKeyDown(KeyCode.Keypad4))
     {
         action();
     }
 }
Beispiel #14
0
 public void Zero(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha0) || Input.GetKeyDown(KeyCode.Keypad0))
     {
         action();
     }
 }
Beispiel #15
0
 public void RightMouseButton(InputDelegate_Button action)
 {
     if (Input.GetMouseButtonDown(1))
     {
         action();
     }
 }
Beispiel #16
0
 public void One(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha1) || Input.GetKeyDown(KeyCode.Keypad1))
     {
         action();
     }
 }
Beispiel #17
0
 public void Two(InputDelegate_Button action)
 {
     if (Input.GetKeyDown(KeyCode.Alpha2) || Input.GetKeyDown(KeyCode.Keypad2))
     {
         action();
     }
 }