Update
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Invector.vShooter
|
||||
if (charObj)
|
||||
{
|
||||
charAnimator = charObj.GetComponent<Animator>();
|
||||
humanoidpreview = Editor.CreateEditor(charObj);
|
||||
humanoidpreview = UnityEditor.Editor.CreateEditor(charObj);
|
||||
}
|
||||
|
||||
charExist = charAnimator != null;
|
||||
@@ -109,7 +109,7 @@ namespace Invector.vShooter
|
||||
|
||||
if (GUI.changed && charObj != null && charObj.GetComponent<vThirdPersonController>() == null)
|
||||
{
|
||||
humanoidpreview = Editor.CreateEditor(charObj);
|
||||
humanoidpreview = UnityEditor.Editor.CreateEditor(charObj);
|
||||
}
|
||||
|
||||
if (charObj != null && charObj.GetComponent<vThirdPersonController>() != null)
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Invector.vShooter
|
||||
GUILayout.EndVertical();
|
||||
GUILayout.EndVertical();
|
||||
GUI.enabled = false;
|
||||
Editor.DrawPropertiesExcluding(serializedObject, "weaponCategories", propertyBySide[0], propertyBySide[1],"m_Script");
|
||||
DrawPropertiesExcluding(serializedObject, "weaponCategories", propertyBySide[0], propertyBySide[1],"m_Script");
|
||||
GUI.enabled = true;
|
||||
if (GUI.changed) serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user