コード例 #1
0
ファイル: GameManager.cs プロジェクト: gkjolin/Uniy2017_ToLua
 protected void OnPinchMethod(Vector2 vec2, GameObject go, float delta, float gap, ContinuousGestureEventPhase phase)
 {
     object[] args = new object[5];
     args.SetValue(vec2, 0);
     args.SetValue(go, 1);
     args.SetValue(delta, 2);
     args.SetValue(gap, 3);
     args.SetValue((int)phase, 4);
     CallMethod("OnPinch", args);
 }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: gkjolin/Uniy2017_ToLua
 protected void OnFirstFingerDragMethod(Vector2 vec2, GameObject go, Vector2 deltaMove, ContinuousGestureEventPhase phase)
 {
     object[] args = new object[4];
     args.SetValue(vec2, 0);
     args.SetValue(go, 1);
     args.SetValue(deltaMove, 2);
     args.SetValue((int)phase, 3);
     CallMethod("OnFirstFingerDrag", args);
 }