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