mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
cleanup
This commit is contained in:
parent
77ed0055a8
commit
9932b56b65
@ -74,19 +74,11 @@ protected void setSyncVarHookGuard(ulong dirtyBit, bool value)
|
||||
syncVarHookGuard &= ~dirtyBit;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// objects that can synchronize themselves, such as synclists
|
||||
/// </summary>
|
||||
// SyncLists, SyncSets, etc.
|
||||
protected readonly List<SyncObject> syncObjects = new List<SyncObject>();
|
||||
|
||||
/// <summary>
|
||||
/// NetworkIdentity component caching for easier access
|
||||
/// </summary>
|
||||
NetworkIdentity netIdentityCache;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the NetworkIdentity of this object
|
||||
/// </summary>
|
||||
/// <summary>Returns the NetworkIdentity of this object</summary>
|
||||
public NetworkIdentity netIdentity
|
||||
{
|
||||
get
|
||||
@ -104,14 +96,13 @@ public NetworkIdentity netIdentity
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the index of the component on this object
|
||||
/// </summary>
|
||||
/// <summary>Returns the index of the component on this object</summary>
|
||||
public int ComponentIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
// note: FindIndex causes allocations, we search manually instead
|
||||
// TODO this is not fast at runtime uhh
|
||||
for (int i = 0; i < netIdentity.NetworkBehaviours.Length; i++)
|
||||
{
|
||||
NetworkBehaviour component = netIdentity.NetworkBehaviours[i];
|
||||
|
Loading…
Reference in New Issue
Block a user