/// <summary> /// UI实例创建时执行 /// </summary> private void Awake() { Instance = this; DontDestroyOnLoad(this); actorPropertyHelper = new ActorPropertyHelper(logger); gongFaHelper = new GongFaHelper(logger); }
public GongFaFilter(GongFaHelper instance) { parent = instance; foreach (var data in DateFile.instance.baseSkillDate) { if (data.Key > 100 && data.Value.TryGetValue(0, out var type)) { gongFaTypes[type] = data.Key; } } gongFaTypes["全部"] = 0; foreach (var data in DateFile.instance.presetGangDate) { if (data.Value[2] == "1") { gongFaGangs[data.Value[0]] = data.Key; } } gongFaGangs["全部"] = 0; DropDownMenu.CreateMenuInstance("gongFaType", new List <string>(gongFaTypes.Keys), (string name) => { if (!type.Equals(gongFaTypes[name])) { type = gongFaTypes[name]; GetCurrentActorGongFa(); GetCurrentOtherGongFa(); } }); DropDownMenu.CreateMenuInstance("gongFaGang", new List <string>(gongFaGangs.Keys), (string name) => { if (gang != gongFaGangs[name]) { gang = gongFaGangs[name]; GetCurrentActorGongFa(); GetCurrentOtherGongFa(); } }); DropDownMenu.CreateMenuInstance("gongFaPrestige", new List <string>(gongFaPrestiges.Keys), (string name) => { if (prestige != gongFaPrestiges[name]) { prestige = gongFaPrestiges[name]; GetCurrentActorGongFa(); GetCurrentOtherGongFa(); } }); }
public GongFaEditor(GongFaHelper instance) { parent = instance; }