Newer
Older
HierarchicalFSM-Unity3D / Assets / Editor / AwarenessEditor.cs
@Rackday Rackday on 14 Aug 403 bytes Major Update
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(Awareness))]
public class AwarenessEditor : Editor
{
    private void OnSceneGUI()
    {
        Awareness aware = (Awareness)target;
        Handles.color = Color.green;

        Handles.DrawWireArc(aware.transform.position, Vector3.up, Vector3.forward, 360, aware.Radius);
    }
}