public ButtonStyleWidget(ExBase exBase, List <ButtonStyle> styles) : base(exBase, null) { this.label = exBase.GetComponentInChildren <Text>(); this.image = exBase.GetComponent <Image>(); this.styles = styles; RegistEvent <string>("OnStyle", OnStyle); }
public TimeWidget(ExBase exBase, Action completeAction, float time, bool timeScaleEnable) : base(exBase, completeAction) { StartUpdate(); this.timeScaleEnable = timeScaleEnable; this.periodTime = time; this.curTime = handledTime; this.targetTime = handledTime + this.periodTime; }
public static void Remove(ExBase exBase) { if (Instance != null) { if (Instance.updateDatas.Contains(exBase)) { Instance.updateDatas.Remove(exBase); } } }
public static void Add(ExBase exBase) { if (Instance != null) { if (!Instance.updateDatas.Contains(exBase)) { Instance.updateDatas.Add(exBase); } } }
public Widget(ExBase uiBase, Action completeAction) { this.exBase = uiBase; this.completeAction = completeAction; }