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;
|
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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user