File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Assets/BossRoom/Scripts/Client/UI Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Runtime . CompilerServices ;
3
2
using Unity . Multiplayer . Samples . BossRoom . Client ;
4
3
using Unity . Multiplayer . Samples . BossRoom . Shared . Infrastructure ;
5
4
using Unity . Multiplayer . Samples . BossRoom . Shared . Net . UnityServices . Infrastructure ;
6
- using Unity . Services . Authentication ;
7
5
using Unity . Services . Lobbies ;
8
6
using UnityEngine ;
9
7
@@ -44,14 +42,9 @@ void ServiceErrorHandler(UnityServiceErrorMessage error)
44
42
}
45
43
case UnityServiceErrorMessage . Service . Authentication :
46
44
{
47
- if ( error . OriginalException is AuthenticationException exception )
48
- {
49
- PopupPanel . ShowPopupPanel ( "Authentication Error" ,
50
- $ "For some reason we can't authenticate the user anonymously - that typically means that project is not properly " +
51
- $ "set up with Unity services or that there is no internet connection." +
52
- $ " You can still use the Direct IP connection option. { exception . Message } ") ;
53
-
54
- }
45
+ PopupPanel . ShowPopupPanel (
46
+ "Authentication Error" ,
47
+ $ "{ error . Message } \n \n tip: You can still use the Direct IP connection option.") ;
55
48
break ;
56
49
}
57
50
default :
You can’t perform that action at this time.
0 commit comments