Esempio n. 1
0
 void EasyTouch_On_Drag(Gesture gesture)
 {
     if (canRotate)
     {
         if (model != null)
         {
             model.Rotate(gesture.deltaPosition.x);
         }
     }
 }
Esempio n. 2
0
 static int Rotate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Model.View.ModelBehaviour obj = (Logic.Model.View.ModelBehaviour)ToLua.CheckObject(L, 1, typeof(Logic.Model.View.ModelBehaviour));
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.Rotate(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }