Beispiel #1
0
 private WarrningWindow window;              //把错误弹框UI赋值给该变量
 void Update()
 {
     if (errors.Count > 0)
     {
         WarrningModel err = errors[0];
         errors.RemoveAt(0);
         window.active(err);
     }
 }
 public void active(WarrningModel value)
 {
     text.text   = value.value;
     this.result = value.result;
     if (value.delay > 0)
     {
         Invoke("close", value.delay);
     }
     gameObject.SetActive(true);
 }
Beispiel #3
0
 public void active(WarrningModel value)
 {
     text.text   = value.value;
     this.result = value.result;
     gameObject.SetActive(true);
 }