Esempio n. 1
0
        void EasyTouch_On_SimpleTap(Gesture gesture)
        {
            GameObject go = SelectModel(gesture.position);

            if (go == null)
            {
                return;
            }
            model = go.GetComponent <ModelBehaviour>();
            model.ClickBehavior();
        }
Esempio n. 2
0
 static int ClickBehavior(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Logic.Model.View.ModelBehaviour obj = (Logic.Model.View.ModelBehaviour)ToLua.CheckObject(L, 1, typeof(Logic.Model.View.ModelBehaviour));
         obj.ClickBehavior();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }