public void Display(string text, float duration, NotificationType type) { StopAllCoroutines(); SoundDatabase.PlayNotificationSound(); SetWarningColor(type); icon.sprite = defaultIcon; this.text.text = text; StartCoroutine(DisplayOvertime(0.3f, duration)); }