Newer
Older
HierarchicalFSM-Unity3D / Assets / Editor / AwarenessEditor.cs
@Rackday Rackday on 14 Aug 403 bytes Major Update
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEditor;
  4. using UnityEngine;
  5. [CustomEditor(typeof(Awareness))]
  6. public class AwarenessEditor : Editor
  7. {
  8. private void OnSceneGUI()
  9. {
  10. Awareness aware = (Awareness)target;
  11. Handles.color = Color.green;
  12. Handles.DrawWireArc(aware.transform.position, Vector3.up, Vector3.forward, 360, aware.Radius);
  13. }
  14. }