Пример #1
0
        public override void GuiParameters()
        {
            patrolAgent = (AISVarComponent)AISEditorUtil.VarPopUp("Points", ai, patrolAgent, typeof(AISVarComponent), typeof(PatrolAgent));
            patrolIdx   = UnityEditor.EditorGUILayout.IntField("Patrol idx:", patrolIdx);

            base.GuiParameters();
        }
Пример #2
0
        public override void GuiParameters()
        {
            base.GuiParameters();

            destinyKey = AISEditorUtil.VarPopUp("Destiny:", ai, destinyKey, typeof(AISVarSingle), typeof(Transform));

            stopDistance = EditorGUILayout.FloatField("Stop distance:", stopDistance);
        }
Пример #3
0
        public override void OnActionEnter(AISController ctrl)
        {
            base.OnActionEnter(ctrl);

            Transform t = AISEditorUtil.GetSingleObject <Transform>(ctrl, destinyKey);

            if (!t)
            {
                return;
            }

            destiny.Add(ctrl, t);
        }
Пример #4
0
 public override void GuiParameters()
 {
     listKey = AISEditorUtil.VarPopUp("List to select", ai, listKey, typeof(AISVarList));
     best    = AISEditorUtil.VarPopUp("Single to select", ai, best, typeof(AISVarSingle));
 }
Пример #5
0
        public override void OnActionExit(AISController ctrl)
        {
            base.OnActionExit(ctrl);

            AISEditorUtil.GetComponent <PatrolAgent>(ctrl, patrolAgent).Unsubscribe(patrolIdx);
        }