Exemplo n.º 1
0
        void EmitEndEvent(Vector3 touchpos)
        {
            TouchTileEvent pevent = new TouchTileEvent();

            pevent.reset();
            pevent.Sender     = this.gameObject;
            pevent.m_TouchPos = touchpos;
            pevent.m_TouchObj = null;
            EventCenter.getInstance.OnEnd <TouchTileEvent>(pevent);
        }
Exemplo n.º 2
0
        void EmitTouchingEvent(GameObject touchobj, Vector3 touchpos)
        {
            TouchTileEvent pevent = new TouchTileEvent();

            pevent.reset();
            pevent.Sender     = this.gameObject;
            pevent.m_TouchPos = touchpos;
            pevent.m_TouchObj = touchobj;
            EventCenter.getInstance.OnPressing <TouchTileEvent>(pevent);
        }
Exemplo n.º 3
0
        void EmitPressEvent(GameObject touchobj, Vector3 touchpos)
        {
            TouchTileEvent pevent = new TouchTileEvent();

            pevent.reset();
            pevent.Sender     = this.gameObject;
            pevent.m_TouchPos = touchpos;
            pevent.m_TouchObj = touchobj;
            //pevent.SetParam(m_PanelID, bstart);
            EventCenter.getInstance.OnPress <TouchTileEvent>(pevent);
        }