public void SpawnUINotification(string message, bool isGoodNotification) { NotificationPanel notificationInstance = (NotificationPanel)Instantiate(m_NotificationPanelPrefab, m_NotificationSpawn.position, Quaternion.identity, this.transform); notificationInstance.SetText(message, isGoodNotification); }