コード例 #1
0
        public void Close()
        {
            if (_StatePassed || _luaState == null)
            {
                return;
            }

            _luaState.Close();
            ObjectTranslatorPool.Instance.Remove(_luaState);
            _luaState = null;
        }
コード例 #2
0
        public void Close()
        {
            if (_StatePassed)
            {
                return;
            }

            if (luaState != null)
            {
                lock (translatorPoolLock)
                {
                    luaState.Close();
                    ObjectTranslatorPool.Instance.Remove(luaState);
                    luaState = null;
                }
            }
        }