HitTest() protected method

protected HitTest ( ) : DisplayObject
return DisplayObject
Exemplo n.º 1
0
 static int HitTest(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.Container  obj  = (FairyGUI.Container)ToLua.CheckObject <FairyGUI.Container>(L, 1);
         UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         FairyGUI.DisplayObject o = obj.HitTest(arg0, arg1);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 2
0
 static public int HitTest(IntPtr l)
 {
     try {
         FairyGUI.Container  self = (FairyGUI.Container)checkSelf(l);
         UnityEngine.Vector2 a1;
         checkType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         var ret = self.HitTest(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }