Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #pragma strict
  2.  
  3. function Update () {
  4. if (Event.current.type == EventType.KeyDown)
  5. {
  6. if (Event.current.keyCode == KeyCode.Return) {
  7. print ("Worked");
  8. gameObject.SendMessage("SendChat");
  9. }
  10. }
  11. }
  12.  
  13. function SendChat () {
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement