Exemple #1
0
    public override void Enter()
    {
        // Try to get a target
        aI_Controller.target = AreaController.instance.character_generator.hero_GObj;
        // If you got one, Seek!
        if (aI_Controller.target != null)
        {
            // enter seek state
            aI_Controller.PushState(StateType.Seek);
            return;
        }

        // no target...
        // Pool?
    }
Exemple #2
0
 void Attack()
 {
     aI_Controller.PushState(StateType.Attack);
 }