//---------------------------------------------------------------------------- public StageLayer() { m_stageLoad = new StageLoad(null); m_EntryCtrl = new CopyEntryCtrl(); m_EntryCtrl.Initialize(); m_copyFactory = new CopyFactory(); Messenger.AddListener(DgMsgID.DgMsg_UnloadAssetFalse, OnUnloadAssetFalse); }
//---------------------------------------------------------------------------- public override void Finalized() { base.Finalized(); if (m_EntryCtrl != null) { m_EntryCtrl.Finalized(); m_EntryCtrl = null; } m_copyFactory = null; Messenger.RemoveListener(DgMsgID.DgMsg_UnloadAssetFalse, OnUnloadAssetFalse); }