예제 #1
0
 public CharacterView()
 {
     this.WinResCfg         = new WinResurceCfg(true, true, "CharacterView");
     this._hudTextRecycler  = new ObjectRecycler <HUDText>(new Func <HUDText>(this.NewHudText), null);
     this._jumpwordRecycler = new ObjectRecycler <UIJumpWord>(delegate
     {
         UIJumpWord uIJumpWord = ResourceManager.LoadPath <UIJumpWord>("Prefab/UI/HUDText/JumpWord", null, 0);
         if (uIJumpWord == null)
         {
             ClientLogger.Error("UIJumpWordPrefab is Null跳字预设为空(没有找到)");
             return(null);
         }
         return(UnityEngine.Object.Instantiate(uIJumpWord) as UIJumpWord);
     }, new Action <UIJumpWord>(UnityEngine.Object.Destroy));
 }
예제 #2
0
 public void DestroyJumpWord(UIJumpWord word)
 {
     this._jumpwordRecycler.Release(word);
 }