Beispiel #1
0
        public override void OnTap(Vector2 p)
        {
            JabRectangle rect = GetRectangle();

            if (Contains(p.X, p.Y))
            {
                MenuEvent ev = new MenuEvent(MenuEvent.EventType.TAP);
                ev.sender = this;
                EventManager.Get.SendEvent(ev);
            }
        }
Beispiel #2
0
        public override void OnTap(Vector2 p)
        {
            JabRectangle rect = GetRectangle();

            if (Contains(p.X, p.Y))
            {
                MenuEvent ev = new MenuEvent(MenuEvent.EventType.TAP);
                ev.sender = this;
                EventManager.Get.SendEvent(ev);
            }
        }