Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update () {
- if (Input.GetKey(KeyCode.LeftControl)) // если контрол зажат. За это отвечает Input.GetKey/GetButton/GetAxis
- {
- // блаблабла
- }
- else if (Input.GetKeyUp(KeyCode.LeftControl)) // если контрол отжали, то.. Делается через Input.GetKeyUp/GetButtonUp/GetAxisUp
- {
- // возвращаем все на место
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement