public void NewText(string text, CharHandler handler, HUDTextType type) { HUDTextItem item = GetText(type); Vector3 createPos = handler.UIFollowGo.transform.position; item.Show(text, handler, type, createPos); }
//回收一个HUD SkillName对象 public void GetBackSkillText(HUDTextItem item) { item.gameObject.SetActive(false); if (poolSkill.Contains(item)) { return; } poolSkill.Enqueue(item); }