mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkInformationPreview code cleanup (changes if to method call with ?: (#204)
This commit is contained in:
parent
81d98015b7
commit
86a11f4761
@ -141,14 +141,8 @@ public override void OnPreviewGUI(Rect r, GUIStyle background)
|
||||
// could be the case in the editor after existing play mode.
|
||||
continue;
|
||||
}
|
||||
if (info.behaviour.enabled)
|
||||
{
|
||||
GUI.Label(behaviourRect, info.name, m_Styles.componentName);
|
||||
}
|
||||
else
|
||||
{
|
||||
GUI.Label(behaviourRect, info.name, m_Styles.disabledName);
|
||||
}
|
||||
|
||||
GUI.Label(behaviourRect, info.name, info.behaviour.enabled ? m_Styles.componentName : m_Styles.disabledName);
|
||||
behaviourRect.y += behaviourRect.height;
|
||||
lastY = behaviourRect.y;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user