Пример #1
0
 public void Load(ScreenTimer instance)
 {
     this.instance = instance;
     this.StartPrintCycle();
     instance.PrintWarning("Initalized Timer: {0}", this.key);
     if (this.key == storage.screen)
     {
         instance.timer.Once(1.5f, () => this.Show());
     }
 }
Пример #2
0
 public ReturnType Create(ScreenTimer instance, string text, string time)
 {
     this.type_time = time;
     if (this.IsDateTime() == "InvalidTime")
     {
         return(ReturnType.TimeIssue);
     }
     this.type_text = text;
     this.isRunning = true;
     storage.handlers.Add(++storage.count, this);
     this.key = storage.count;
     this.Load(instance);
     instance.SaveData();
     return(ReturnType.Created);
 }