Advertisement
LittleAngel

ptr.evt 2

Oct 17th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. void JoinServerDelegate (ref POINTER_INFO ptr) {
  2. if (hasJoined) ptr.evt = POINTER_INFO.INPUT_EVENT.NO_CHANGE;
  3. if (ptr.evt == POINTER_INFO.INPUT_EVENT.TAP) {
  4.  
  5.  
  6. others:
  7.  
  8. void StartGame (ref POINTER_INFO ptr) {
  9. if (Network.isServer) {
  10. if (currentPlayerCount >= 2) {
  11. if (ptr.evt == POINTER_INFO.INPUT_EVENT.PRESS || ptr.evt == POINTER_INFO.INPUT_EVENT.TAP) {
  12. HostLaunchGame ();
  13. }
  14. } else ptr.evt = POINTER_INFO.INPUT_EVENT.NO_CHANGE;
  15. } else ptr.evt = POINTER_INFO.INPUT_EVENT.NO_CHANGE;
  16. }
  17.  
  18. multiple possibilities:
  19.  
  20. void ClearTextDelegate (ref POINTER_INFO ptr) {
  21. if (ptr.evt == POINTER_INFO.INPUT_EVENT.PRESS || ptr.evt == POINTER_INFO.INPUT_EVENT.TAP) {
  22. UIButton thisButton = (UIButton) ptr.targetObj;
  23. UITextField thisTextField = (UITextField) thisButton.data;
  24. thisTextField.Text = "";
  25. UIManager.instance.FocusObject = thisTextField;
  26. }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement