NetworkBehaviour

This commit is contained in:
Chris Langsenkamp 2019-07-29 03:26:09 -04:00
parent 091c79b429
commit b196ea7367

View File

@ -47,12 +47,12 @@ public class NetworkBehaviour : MonoBehaviour
public bool isLocalPlayer => netIdentity.isLocalPlayer; public bool isLocalPlayer => netIdentity.isLocalPlayer;
/// <summary> /// <summary>
/// /// True if this object only exists on the server
/// </summary> /// </summary>
public bool isServerOnly => isServer && !isClient; public bool isServerOnly => isServer && !isClient;
/// <summary> /// <summary>
/// /// True if this object exists on a client that is not also acting as a server
/// </summary> /// </summary>
public bool isClientOnly => isClient && !isServer; public bool isClientOnly => isClient && !isServer;
@ -95,7 +95,7 @@ public class NetworkBehaviour : MonoBehaviour
NetworkIdentity netIdentityCache; NetworkIdentity netIdentityCache;
/// <summary> /// <summary>
/// /// Returns the NetworkIdentity of this object
/// </summary> /// </summary>
public NetworkIdentity netIdentity public NetworkIdentity netIdentity
{ {
@ -114,7 +114,7 @@ public NetworkIdentity netIdentity
} }
/// <summary> /// <summary>
/// /// Returns the index of the component on this object
/// </summary> /// </summary>
public int ComponentIndex public int ComponentIndex
{ {