Exemple #1
0
 static int ObjAddShadow(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.Transform));
         ShadowObj.ObjAddShadow(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #2
0
    static int set_isrender(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShadowObj obj  = (ShadowObj)o;
            bool      arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.isrender = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isrender on a nil value" : e.Message));
        }
    }
Exemple #3
0
    static int get_isrender(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShadowObj obj = (ShadowObj)o;
            bool      ret = obj.isrender;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isrender on a nil value" : e.Message));
        }
    }
 public void AddPartsShadow(ShadowObj shadowObj)
 {
 }