public static void ShowWindow(SerializedObject serializedObject) { EquipmentHandlerEditor window = EditorWindow.GetWindow <EquipmentHandlerEditor>(true, "Setup Items"); window.minSize = new Vector2(227, 200); window.serializedObject = serializedObject; window.target = serializedObject.targetObject; window.wantsMouseMove = true; }
private void OnEnable() { instance = this; }