private void RmvAllHpItemInfo(object sender, GameEventArgs e) { RmvAllHpItemInfoEventArgs ne = e as RmvAllHpItemInfoEventArgs; foreach (var item in itemDic) { Destroy(item.Value.gameObject); } itemDic.Clear(); }
public static void RmvAllHpItemInfo(this UIComponent uiComponent) { if (uiComponent.HasUIForm(UIFormId.DynamicForm)) { RmvAllHpItemInfoEventArgs eventArgs = ReferencePool.Acquire <RmvAllHpItemInfoEventArgs>(); GameEntry.Event.Fire(uiComponent, eventArgs); } else { uiComponent.OpenUIForm(UIFormId.DynamicForm); } }