File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
MLAPI/MonoBehaviours/Core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,20 +37,20 @@ public abstract partial class NetworkedBehaviour : MonoBehaviour
37
37
/// <summary>
38
38
/// Gets if we are executing as server
39
39
/// </summary>
40
- protected bool IsServer => IsRunning && NetworkingManager . Singleton != null && NetworkingManager . Singleton . IsServer ;
40
+ protected bool IsServer => IsRunning && NetworkingManager . Singleton . IsServer ;
41
41
[ Obsolete ( "Use IsClient instead" ) ]
42
42
protected bool isClient => IsClient ;
43
43
/// <summary>
44
44
/// Gets if we are executing as client
45
45
/// </summary>
46
- protected bool IsClient => IsRunning && NetworkingManager . Singleton != null && NetworkingManager . Singleton . IsClient ;
46
+ protected bool IsClient => IsRunning && NetworkingManager . Singleton . IsClient ;
47
47
[ Obsolete ( "Use IsHost instead" , false ) ]
48
48
protected bool isHost => IsHost ;
49
49
/// <summary>
50
50
/// Gets if we are executing as Host, I.E Server and Client
51
51
/// </summary>
52
- protected bool IsHost => IsRunning && NetworkingManager . Singleton != null && NetworkingManager . Singleton . IsHost ;
53
- private bool IsRunning => NetworkingManager . Singleton != null && ( NetworkingManager . Singleton == null || NetworkingManager . Singleton . IsListening ) ;
52
+ protected bool IsHost => IsRunning && NetworkingManager . Singleton . IsHost ;
53
+ private bool IsRunning => NetworkingManager . Singleton != null && NetworkingManager . Singleton . IsListening ;
54
54
[ Obsolete ( "Use IsOwnedByServer instead" , false ) ]
55
55
public bool isOwnedByServer => IsOwnedByServer ;
56
56
/// <summary>
You can’t perform that action at this time.
0 commit comments