Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class PressSound : MonoBehaviour {
  5. void check() {
  6. if (Event.current.Equals (Event.KeyboardEvent ("a")))
  7. play.audio (audioclip);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement