internal void DisposeInternal(int reference, bool finalized) { if (finalized && _translator != null) { _translator.AddFinalizedReference(reference); return; } if (_luaState != null && !finalized) { _luaState.Unref(reference); } }