public void SpawnNotification(Vector3 eventPosition) { NotificationController notif = Instantiate <NotificationController>(notification, eventPosition + Vector3.up * notificationOffset, Quaternion.identity); UINotificationController notifUI = Instantiate <UINotificationController>(uINotificationPrefab, canvas.transform); notifUI.AddConnectedNotif(notif); notif.AddUINotif(notifUI); }