示例#1
0
        //脚本拖入
        public void JoyStickControlMove(Vector2 direction)
        {
            TouchData td = mTouchEvents[TouchType.TT_MOVE];

            td.touchPos = direction;
            td.nTouchEvent(td);
        }
示例#2
0
 protected override void Init()
 {
     FCommonFunction.SetList(nButtons, (f, i) =>
     {
         f.nBtEvent = (t) =>
         {
             if (mTouchEvents.ContainsKey(TouchType.TT_KEY))
             {
                 TouchData td = mTouchEvents[TouchType.TT_KEY];
                 td.index     = i;
                 td.nTouchEvent(td);
             }
         };
     });
 }