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