static void AddUIPolygonRaycast(MenuCommand menuCommand) { GameObject go = new GameObject("UIPolygonRaycast"); UIPolygonRaycast obj = go.AddComponent <UIPolygonRaycast>(); PlaceUIElementRoot(menuCommand, go); }
static int IsRaycastLocationValid(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIPolygonRaycast obj = (UIPolygonRaycast)ToLua.CheckObject <UIPolygonRaycast>(L, 1); UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2); UnityEngine.Camera arg1 = (UnityEngine.Camera)ToLua.CheckObject(L, 3, typeof(UnityEngine.Camera)); bool o = obj.IsRaycastLocationValid(arg0, arg1); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }