Advertisement
Guest User

Untitled

a guest
Feb 4th, 2011
5,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. void Update () {
  2.      if (Input.GetKey(KeyCode.LeftControl)) // если контрол зажат. За это отвечает Input.GetKey/GetButton/GetAxis
  3.      {
  4.          // блаблабла
  5.      }
  6.      else if (Input.GetKeyUp(KeyCode.LeftControl)) // если контрол отжали, то.. Делается через Input.GetKeyUp/GetButtonUp/GetAxisUp
  7.      {
  8.             // возвращаем все на место
  9.      }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement