//脚本拖入 public void JoyStickControlMove(Vector2 direction) { TouchData td = mTouchEvents[TouchType.TT_MOVE]; td.touchPos = direction; td.nTouchEvent(td); }
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); } }; }); }