/// <summary> /// 销毁加载的角色 /// </summary> void DestroyPreviewModel() { if (m_ModelId != null) { xc.ActorManager.Instance.DestroyActor(m_ModelId, 0); m_ModelId = null; } if (m_PreviewTexture != null) { m_PreviewTexture.Destroy(); } }
static int _m_Destroy(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UIPreviewTexture __cl_gen_to_be_invoked = (UIPreviewTexture)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Destroy( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }