Skip to content

Commit 0fb35c3

Browse files
Update UIMenuManager.cs
Found a small bug, which was causing a NullReferenceException Bug ticket: #478 Forum Thread: https://forum.unity.com/threads/bug-uimenumanager-throws-nullreferenceexception-on-game-exit.1142410/#post-7337182
1 parent f96540a commit 0fb35c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UOP1_Project/Assets/Scripts/UI/UIMenuManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void HideExitConfirmationPopup(bool quitConfirmed)
152152
if (quitConfirmed)
153153
{
154154
Application.Quit();
155-
_onGameExitEvent.OnEventRaised();
155+
_onGameExitEvent.RaiseEvent();
156156
}
157157
_mainMenuPanel.SetMenuScreen(_hasSaveData);
158158

0 commit comments

Comments
 (0)