Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void Update() {
  2.  
  3. while (trigger == false) {
  4. if (Input.GetKeyDown (KeyCode.W)
  5. | Input.GetKeyDown (KeyCode.A)
  6. | Input.GetKeyDown (KeyCode.S)
  7. | Input.GetKeyDown (KeyCode.D)) {
  8. hudText.Add ("Nice work! Now try...", Color.red, 3f);
  9.  
  10. Debug.Log (trigger);
  11.  
  12. trigger=true;
  13.  
  14.  
  15. }
  16. }
  17. Debug.Log (trigger);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement