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; }
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; } } }