Example #1
0
 /// <summary>
 /// 设置标尾更新函数
 /// </summary>
 /// <param name="constructor">热更新的中间件</param>
 public void SetTailUpdate(HotMiddleware constructor)
 {
     for (int i = 0; i < Tails.Count; i++)
     {
         HGUIManager.GameBuffer.RecycleGameObject(Tails[i].target.gameObject);
     }
     Tails.Clear();
     TailCreator = constructor;
 }
Example #2
0
 /// <summary>
 /// 设置标头更新函数
 /// </summary>
 /// <param name="constructor">热更新的中间件</param>
 public void SetTitleUpdate(HotMiddleware constructor)
 {
     for (int i = 0; i < Titles.Count; i++)
     {
         HGUIManager.RecycleUI(Titles[i].target);
     }
     Titles.Clear();
     TitleCreator = constructor;
 }
Example #3
0
 /// <summary>
 /// 设置项目更新函数
 /// </summary>
 /// <param name="constructor">热更新的中间件</param>
 public void SetItemUpdate(HotMiddleware constructor)
 {
     for (int i = 0; i < Items.Count; i++)
     {
         HGUIManager.GameBuffer.RecycleGameObject(Items[i].target.gameObject);
     }
     Items.Clear();
     ItemCreator = constructor;
 }
Example #4
0
 /// <summary>
 /// 热更新无法跨域,使用此函数
 /// </summary>
 /// <param name="action"></param>
 /// <param name="reflect"></param>
 public void SetItemUpdate(HotMiddleware constructor)
 {
     Clear();
     creator        = constructor;
     creator.create = true;
 }