public static void ShowWindow(PixelCharacter character) { EditorWindow.GetWindow(typeof(ShapeCreatorWindow), false, "Shape Creator", true); ShapeCreatorWindow.character = character; variablesSet = false; }
private void OnEnable() { character = (PixelCharacter)target; defaultLabelWidth = EditorGUIUtility.labelWidth; }
public static void ShowWindow(PixelCharacter character, PixelCharacter.BodyPart bodyPart) { EditorWindow.GetWindow(typeof(ShapeCreatorWindow), false, "Shape Creator", true); ShapeCreatorWindow.character = character; SetVariables(bodyPart, bodyPart.shape, bodyPart.name); }