Skip to content

Commit 368a9a2

Browse files
authored
feat: making NetworkBehaviour's IsServer, IsClient, IsHost public (#2352)
1 parent f59a68c commit 368a9a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,18 +314,18 @@ public NetworkManager NetworkManager
314314
/// <summary>
315315
/// Gets if we are executing as server
316316
/// </summary>
317-
protected bool IsServer { get; private set; }
317+
public bool IsServer { get; private set; }
318318

319319
/// <summary>
320320
/// Gets if we are executing as client
321321
/// </summary>
322-
protected bool IsClient { get; private set; }
322+
public bool IsClient { get; private set; }
323323

324324

325325
/// <summary>
326326
/// Gets if we are executing as Host, I.E Server and Client
327327
/// </summary>
328-
protected bool IsHost { get; private set; }
328+
public bool IsHost { get; private set; }
329329

330330
/// <summary>
331331
/// Gets Whether or not the object has a owner

0 commit comments

Comments
 (0)