mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Remove redundant if
This commit is contained in:
parent
62525a9b4b
commit
de768d142f
@ -268,16 +268,13 @@ IEnumerable<NetworkBehaviourInfo> GetNetworkBehaviorInfo(NetworkIdentity identit
|
||||
List<NetworkBehaviourInfo> behaviourInfos = new List<NetworkBehaviourInfo>();
|
||||
|
||||
NetworkBehaviour[] behaviours = identity.GetComponents<NetworkBehaviour>();
|
||||
if (behaviours.Length > 0)
|
||||
foreach (NetworkBehaviour behaviour in behaviours)
|
||||
{
|
||||
foreach (NetworkBehaviour behaviour in behaviours)
|
||||
behaviourInfos.Add(new NetworkBehaviourInfo
|
||||
{
|
||||
behaviourInfos.Add(new NetworkBehaviourInfo
|
||||
{
|
||||
name = new GUIContent(behaviour.GetType().FullName),
|
||||
behaviour = behaviour
|
||||
});
|
||||
}
|
||||
name = new GUIContent(behaviour.GetType().FullName),
|
||||
behaviour = behaviour
|
||||
});
|
||||
}
|
||||
return behaviourInfos;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user