public override void GuiParameters() { patrolAgent = (AISVarComponent)AISEditorUtil.VarPopUp("Points", ai, patrolAgent, typeof(AISVarComponent), typeof(PatrolAgent)); patrolIdx = UnityEditor.EditorGUILayout.IntField("Patrol idx:", patrolIdx); base.GuiParameters(); }
public override void GuiParameters() { base.GuiParameters(); destinyKey = AISEditorUtil.VarPopUp("Destiny:", ai, destinyKey, typeof(AISVarSingle), typeof(Transform)); stopDistance = EditorGUILayout.FloatField("Stop distance:", stopDistance); }
public override void OnActionEnter(AISController ctrl) { base.OnActionEnter(ctrl); Transform t = AISEditorUtil.GetSingleObject <Transform>(ctrl, destinyKey); if (!t) { return; } destiny.Add(ctrl, t); }
public override void GuiParameters() { listKey = AISEditorUtil.VarPopUp("List to select", ai, listKey, typeof(AISVarList)); best = AISEditorUtil.VarPopUp("Single to select", ai, best, typeof(AISVarSingle)); }
public override void OnActionExit(AISController ctrl) { base.OnActionExit(ctrl); AISEditorUtil.GetComponent <PatrolAgent>(ctrl, patrolAgent).Unsubscribe(patrolIdx); }