NetworkAnimatorEditor: create GUIContent directly

This commit is contained in:
vis2k 2019-03-07 13:39:15 +01:00
parent ca7824bbc1
commit f3738d87d7

View File

@ -13,7 +13,7 @@ public class NetworkAnimatorEditor : Editor
[NonSerialized] bool m_Initialized;
SerializedProperty m_AnimatorProperty;
GUIContent m_AnimatorLabel;
GUIContent m_AnimatorLabel = new GUIContent("Animator", "The Animator component to synchronize.");
void Init()
{
@ -24,7 +24,6 @@ void Init()
m_AnimSync = target as NetworkAnimator;
m_AnimatorProperty = serializedObject.FindProperty("m_Animator");
m_AnimatorLabel = new GUIContent("Animator", "The Animator component to synchronize.");
}
public override void OnInspectorGUI()