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); }
public void active(WarrningModel value) { text.text = value.value; this.result = value.result; gameObject.SetActive(true); }