Beispiel #1
0
        /// <summary>
        /// 卸载资源
        /// </summary>
        public override void Unload()
        {
            m_mainRes.RemoveNotification(OnReceiveNotification);
            m_mainRes.Unload();
            m_mainRes = null;

            m_listener = null;

            Recycle();
        }
Beispiel #2
0
 public void Init(string assetName, ResNotificationListener listener)
 {
     m_mainRes  = ResPool.Get <ResourceRes>(ResData.AllocateResource(assetName), true);
     m_listener = listener;
 }