Пример #1
0
 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);
 }
Пример #2
0
 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;
 }
Пример #3
0
 public static void Remove(ExBase exBase)
 {
     if (Instance != null)
     {
         if (Instance.updateDatas.Contains(exBase))
         {
             Instance.updateDatas.Remove(exBase);
         }
     }
 }
Пример #4
0
 public static void Add(ExBase exBase)
 {
     if (Instance != null)
     {
         if (!Instance.updateDatas.Contains(exBase))
         {
             Instance.updateDatas.Add(exBase);
         }
     }
 }
Пример #5
0
 public Widget(ExBase uiBase, Action completeAction)
 {
     this.exBase         = uiBase;
     this.completeAction = completeAction;
 }