Пример #1
0
    static int get_blockingMask(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.GraphicRaycaster obj = (UnityEngine.UI.GraphicRaycaster)o;
            UnityEngine.LayerMask           ret = obj.blockingMask;
            ToLua.PushLayerMask(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index blockingMask on a nil value"));
        }
    }
Пример #2
0
    static int get_groundLayer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DummyBehavior         obj = (DummyBehavior)o;
            UnityEngine.LayerMask ret = obj.groundLayer;
            ToLua.PushLayerMask(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index groundLayer on a nil value" : e.Message));
        }
    }
    private static int get_layerMask(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            FS_ShadowSimple fS_ShadowSimple = (FS_ShadowSimple)obj;
            LayerMask       layerMask       = fS_ShadowSimple.layerMask;
            ToLua.PushLayerMask(L, layerMask);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index layerMask on a nil value");
        }
        return(result);
    }