Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Editor/sharedActionZoneManagerEditor.cs

37 lines
706 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
[CustomEditor (typeof(sharedActionZoneManager))]
public class sharedActionZoneManagerEditor : Editor
{
sharedActionZoneManager manager;
void OnEnable ()
{
manager = (sharedActionZoneManager)target;
}
public override void OnInspectorGUI ()
{
DrawDefaultInspector ();
EditorGUILayout.Space ();
EditorGUILayout.Space ();
GUILayout.Label ("EDITOR BUTTONS", EditorStyles.boldLabel);
EditorGUILayout.Space ();
if (GUILayout.Button ("Get All Shared Action Zones On Scene")) {
manager.getAllSharedActionZonesOnScene ();
}
EditorGUILayout.Space ();
}
}
#endif