Example #1
0
    static int Lua_ToString(IntPtr L)
    {
        MovmentComponent obj = LuaScriptMgr.GetNetObject <MovmentComponent>(L, 1);

        LuaScriptMgr.Push(L, obj.ToString());
        return(1);
    }
Example #2
0
    static int ToString(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        MovmentComponent obj = LuaScriptMgr.GetNetObject <MovmentComponent>(L, 1);
        string           o   = obj.ToString();

        LuaScriptMgr.Push(L, o);
        return(1);
    }