using TFramework; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace TFramework { [CustomEditor(typeof(AudioManager))] public class AudioManagerInspector : TEditor { private SerializedProperty _backgroundSource; private SerializedProperty _otherSource; private void OnEnable() { _backgroundSource = serializedObject.FindProperty("_backgroundSource"); _otherSource = serializedObject.FindProperty("_otherSource"); } public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.PropertyField(_backgroundSource, new GUIContent("±³¾°ÒôƵ²¥·ÅÆ÷")); EditorGUILayout.PropertyField(_otherSource, new GUIContent("ÆäËûÒôƵ²¥·ÅÆ÷")); serializedObject.ApplyModifiedProperties(); } } }