File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Assets/BossRoom/Scripts/Client/UI Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
using Unity . Multiplayer . Samples . BossRoom . Shared ;
2
2
using Unity . Multiplayer . Samples . BossRoom . Shared . Infrastructure ;
3
- using Unity . Netcode ;
4
3
using UnityEngine ;
4
+ using UnityEngine . SceneManagement ;
5
5
using UnityEngine . UI ;
6
6
7
7
namespace Unity . Multiplayer . Samples . BossRoom . Client
@@ -23,8 +23,8 @@ private void InjectDependencies(ApplicationController applicationController)
23
23
24
24
void OnEnable ( )
25
25
{
26
- m_QuitMode = NetworkManager . Singleton == null || ! NetworkManager . Singleton . IsListening ;
27
- m_QuitButtonText . text = m_QuitMode ? "Exit Game?" : "Leave session ?" ;
26
+ m_QuitMode = SceneManager . GetActiveScene ( ) . name == "MainMenu" ;
27
+ m_QuitButtonText . text = m_QuitMode ? "Exit Game?" : "Return to menu ?" ;
28
28
}
29
29
30
30
public void Quit ( )
You can’t perform that action at this time.
0 commit comments