コード例 #1
0
        protected virtual void OnPostInit()
        {
            luna.Register("luna.startCoroutine", _StartCoroutine);
            luna.Register("luna.stopCoroutine", _StopCoroutine);

            var L = luna.State;

            if (cjson)
            {
                LunaNative.luaopen_cjson(L);
            }

            if (protobuf)
            {
                lua_requiref(L, "pb", LunaNative.luaopen_pb);
            }
        }