LuaInterface.LuaUnityLibs.InitMathf C# (CSharp) Method

InitMathf() static private method

static private InitMathf ( IntPtr L ) : void
L System.IntPtr
return void
        static void InitMathf(IntPtr L)
        {
            LuaDLL.lua_getglobal(L, "Mathf");
            LuaDLL.lua_pushstring(L, "PerlinNoise");
            LuaDLL.tolua_pushcfunction(L, PerlinNoise);
            LuaDLL.lua_rawset(L, -3);
            LuaDLL.lua_pop(L, 1);
        }

Usage Example

示例#1
0
 public static void OpenLibs(IntPtr L)
 {
     LuaUnityLibs.InitMathf(L);
     LuaUnityLibs.InitLayer(L);
 }