public void active(WarningModel value)
 {
     text.text   = value.value;
     this.result = value.result;
     if (value.delay > 0)
     {
         Invoke("Close", value.delay);
     }
     gameObject.SetActive(true);
 }
Exemple #2
0
 public WarrningModel(string value, WarrningResult result = null, float delay = -1)
 {
     this.value  = value;
     this.result = result;
     this.delay  = delay;
 }
Exemple #3
0
 public WarrningModel(string value, WarrningResult result = null)
 {
     this.value  = value;
     this.result = result;
 }
Exemple #4
0
 public void active(WarrningModel value)
 {
     text.text   = value.value;
     this.result = value.result;
     gameObject.SetActive(true);
 }