37 lines
876 B
C#
37 lines
876 B
C#
namespace Fusion.Addons.InterestManagement.Editor
|
|
{
|
|
using UnityEditor;
|
|
using Fusion.Editor;
|
|
|
|
[CustomEditor(typeof(GlobalInterestManager), true)]
|
|
public class GlobalInterestManagerEditor : BehaviourEditor
|
|
{
|
|
// PRIVATE MEMBERS
|
|
|
|
private static InterestProviderSet _interestProviders = new InterestProviderSet();
|
|
|
|
// Editor INTERFACE
|
|
|
|
public override bool RequiresConstantRepaint() => true;
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
PrepareOnInspectorGUI();
|
|
DrawInspectorGUI();
|
|
DrawEditorButtons();
|
|
|
|
GlobalInterestManager globalInterestManager = target as GlobalInterestManager;
|
|
|
|
globalInterestManager.GetProviders(_interestProviders, true);
|
|
InterestEditorUtility.DrawInterestProviders(_interestProviders, true);
|
|
}
|
|
|
|
// GlobalInterestManagerEditor INTERFACE
|
|
|
|
protected virtual void DrawInspectorGUI()
|
|
{
|
|
DrawDefaultInspector();
|
|
}
|
|
}
|
|
}
|