﻿#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;

namespace JLGames.RocketDriver.Actions.Loaderx
{
    [CustomPropertyDrawer(typeof(BundleDebug), true)]
    class BundleDebugDrawer : PropertyDrawer
    {
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_EnableDebug"));
//            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_EnableCache"));
//            EditorGUI.PropertyField(position, property.FindPropertyRelative("m_CachePath"));
//            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_EnableDebug"));
            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_EnableCache"));
            EditorGUILayout.PropertyField(property.FindPropertyRelative("m_CachePath"));
        }
    }
}
#endif