예제 #1
0
    static int get_particleObj(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ParticleExchange       obj = (ParticleExchange)o;
            UnityEngine.GameObject ret = obj.particleObj;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index particleObj on a nil value" : e.Message));
        }
    }
예제 #2
0
    static int get_uri(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ParticleExchange obj = (ParticleExchange)o;
            string           ret = obj.uri;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uri on a nil value" : e.Message));
        }
    }
예제 #3
0
 static int StartLeaveWeatherParticle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         ParticleExchange obj  = (ParticleExchange)ToLua.CheckObject(L, 1, typeof(ParticleExchange));
         string           arg0 = ToLua.CheckString(L, 2);
         float            arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         float            arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         float            arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
         obj.StartLeaveWeatherParticle(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }