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