public void AddText(textToScreen value) { ui.Add(value); }
public override void OnTriggerExit(Actor triggeringActor) { textToScreen p = new textToScreen(text, textPosition, color); Stage.ActiveStage.GetQB<TriggerQB>().RemoveText(p); }
public void RemoveText(textToScreen value) { List<textToScreen> temp = new List<textToScreen>(ui); foreach (textToScreen v in temp) { if (v.text == value.text) ui.Remove(v); } }