Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update() {
- while (trigger == false) {
- if (Input.GetKeyDown (KeyCode.W)
- | Input.GetKeyDown (KeyCode.A)
- | Input.GetKeyDown (KeyCode.S)
- | Input.GetKeyDown (KeyCode.D)) {
- hudText.Add ("Nice work! Now try...", Color.red, 3f);
- Debug.Log (trigger);
- trigger=true;
- }
- }
- Debug.Log (trigger);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement