Esempio n. 1
0
 public static void Register(Func <Rect> del)
 {
     if (mInstance == null)
     {
         mInstance = new EZGUIPointerDisablePatcher();
     }
     mInstance.mDelegate += del;
 }
 public static void Register(Func<Rect> del)
 {
     if (mInstance == null)
     {
         mInstance = new EZGUIPointerDisablePatcher();
     }
     mInstance.mDelegate += del;
 }
Esempio n. 3
0
 private void EZGUIMouseTouchPtrListener(POINTER_INFO ptr)
 {
     if (mDelegate == null || mDelegate.GetInvocationList().Length == 0)
     {
         Dispose();
         mInstance = null;
         return;
     }
     foreach (Func <Rect> d in mDelegate.GetInvocationList())
     {
         if (d.Invoke().Contains(new Vector2(ptr.devicePos.x, Screen.height - ptr.devicePos.y)))
         {
             mUsedPointers[0] = true;
         }
     }
 }
 private void EZGUIMouseTouchPtrListener(POINTER_INFO ptr)
 {
     if (mDelegate == null || mDelegate.GetInvocationList().Length == 0)
     {
         Dispose();
         mInstance = null;
         return;
     }
     foreach (Func<Rect> d in mDelegate.GetInvocationList())
     {
         if (d.Invoke().Contains(new Vector2(ptr.devicePos.x, Screen.height - ptr.devicePos.y)))
         {
             mUsedPointers[0] = true;
         }
     }
 }