Example #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);
            }
        }
Example #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);
            }
        }