Braltor

Unity - Reload con tecla R

Sep 16th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.13 KB | None | 0 0
  1.  void Update ()
  2.  {
  3.      if (Input.GetKey(KeyCode.R))
  4.      {
  5.          GetComponent<Animator>().SetTrigger("Reload");
  6.      }
  7.  }
Advertisement
Add Comment
Please, Sign In to add comment