using UnityEngine; using UnityEditor; using System; using System.Collections; using System.Collections.Generic; namespace TBTK{ [CustomEditor(typeof(AI))] public class I_AIEditor : TBEditorInspector { private AI instance; public override void Awake(){ base.Awake(); instance = (AI)target; InitLabel(); } private string[] aiBehaviourLabel; private string[] aiBehaviourTooltip; void InitLabel(){ int enumLength = Enum.GetValues(typeof(AI._AIBehaviour)).Length; aiBehaviourLabel=new string[enumLength]; aiBehaviourTooltip=new string[enumLength]; for(int i=0; i