mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkBehaviour
This commit is contained in:
parent
091c79b429
commit
b196ea7367
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user