private void OnDestroy() { this.ClearClick(); base.LuaManager = null; Util.ClearMemory(); Debug.Log("~" + base.name + " was destroy!"); }
//----------------------------------------------------------------- protected void OnDestroy() { ClearClick(); LuaManager = null; Util.ClearMemory(); Debug.Log("~" + name + " was destroy!"); }
//----------------------------------------------------------------- protected void OnDestroy() { ClearClick(); //LuaManager = null; #if ASYNC_MODE string abName = name.ToLower().Replace("panel", ""); ResourceManager.UnloadAssetBundle(abName + AppConst.ExtName); #endif Util.ClearMemory(); Debug.Log("~" + name + " was destroy!"); }
//----------------------------------------------------------------- protected void OnDestroy() { if (bundle) { bundle.Unload(true); bundle = null; //销毁素材 } ClearClick(); Util.ClearMemory(); Debug.Log("~" + name + " was destroy!"); }
//----------------------------------------------------------------- protected void OnDestroy() { //if (bundle) { // bundle.Unload(true); // bundle = null; //销毁素材 //} CallMethod("OnDestroy"); ClearClick(); Util.ClearMemory(); m_LuaBehaviourList.Remove(this); if (m_LuaBehaviourList.Count <= 0 && LuaManager != null) { LuaManager.Destroy(); } LuaManager = null; Debug.Log("~" + name + " was destroy!"); }
private void OnDestory() { Util.ClearMemory(); CallLuaMethod("OnDestory"); }