Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.

Commit 69cfc99

Browse files
committed
Fix checking if notification system is setup
1 parent 9046012 commit 69cfc99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Notification/NotificationSystem.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ public static void SetupNotifications()
3131
{
3232
_hudContent = GameObject.Find("/UserInterface/UnscaledUI/HudContent_Old");
3333

34-
var notificationTransform = _hudContent.transform.Find("Notification (Clone)");
34+
var notificationTransform = _hudContent.transform.Find("Notification");
3535
if (notificationTransform != null)
3636
{
3737
//Notification system already initialized
3838
_notificationGO = notificationTransform.gameObject;
3939
_controllerInstance = _notificationGO.GetComponent<NotificationController>();
40+
41+
return;
4042
}
4143

4244
LoadAssets();

0 commit comments

Comments
 (0)