Ejemplo n.º 1
0
        //----------------------------------------------------------------------------
        public override void AcitvePreLoad()
        {
            Messenger.Broadcast(DgMsgID.DgMsg_ActiveLoadUI);
            int nCount = 0;

            if (m_bInit == false)
            {
                nCount = m_listStageResCommon.Count;
                for (int i = 0; i < nCount; i++)
                {
                    if (!m_maAsset.LoadAssetRes <string, Object>(m_listStageResCommon[i], OnLoadCallBack))
                    {
                        CheckFinish();
                    }
                }
            }
            nCount = m_listStageRes.Count;
            for (int i = 0; i < nCount; i++)
            {
                if (!m_maAsset.LoadAssetRes <string, Object>(m_listStageRes[i], OnLoadCallBack))
                {
                    CheckFinish();
                }
            }

            nCount = m_listStageResCommon.Count + m_listStageRes.Count;
            if (nCount <= 0)
            {
                CheckFinish();
            }

            m_bInit = false;
        }
Ejemplo n.º 2
0
        //----------------------------------------------------------------------------
        private void OnPreLoadBGM()
        {
            AssetsManager m_maniAsset = WorldManager.Instance().GetLayer <AssetLayer>().GetManager();

            m_maniAsset.LoadAssetRes <string, Object>("RAB_bgm_opening", OnLoadCallBack);
        }