private void destroyCurrentNotification() { _currentNotification.OnHidden -= onNotificationHidden; _currentNotification.Destroy(); _currentNotification = null; }
private void createNextNotification(Request nextRequest) { _currentNotification = Instantiate(_notificationPrefab); _currentNotification.OnHidden += onNotificationHidden; _currentNotification.Display(nextRequest.Message, nextRequest.DisplayTime); }