public void DelOpComponent(OptionInfo config) { AVGDataComponent component = null; if (opComponentDic.TryGetValue(config.Id, out component)) { opComponentDic.Remove(config.Id); component.Close(); return; } }
public void DelDiaComponent(DialogueInfo config) { AVGDataComponent component = null; if (diaComponentDic.TryGetValue(config.Id, out component)) { diaComponentDic.Remove(config.Id); component.Close(); return; } }
public void AddOrRefreshOpComponent(OptionInfo config) { AVGDataComponent component = null; if (opComponentDic.TryGetValue(config.Id, out component)) { component.Init(AVGDataComponent.AVGComponentType.Option, config); return; } var item = UIManager.instance.CreateComponent <AVGDataComponent>(UINames.AVGDataComponet, optionScroll); item.Init(AVGDataComponent.AVGComponentType.Option, config); item.callback = OnBtnClickOptionDetail; opComponentDic[config.Id] = item; }
public void AddOrRefreshDiaComponent(DialogueInfo config) { AVGDataComponent component = null; if (diaComponentDic.TryGetValue(config.Id, out component)) { component.Init(AVGDataComponent.AVGComponentType.Dialogue, config); return; } var item = UIManager.instance.CreateComponent <AVGDataComponent>(UINames.AVGDataComponet, dialogScroll); item.Init(AVGDataComponent.AVGComponentType.Dialogue, config); item.callback = OnBtnClickDialogueDetail; diaComponentDic[config.Id] = item; }