using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ZombieAIController : StateController<BaseZombieAIState> {

    [SerializeField]
    private Zombie zombie;
    public Zombie Zombie { get { return this.zombie; } }

    private Character target;
    public Character Target { get { return this.target; } set { this.target = value; } }

    protected override void PrepareStateForInit (BaseZombieAIState state) {
        base.PrepareStateForInit(state);
        state.controller = this;
    }

    void Start () {
        this.Zombie.PrepareCharacter();
        this.ChangeState(new ZombiePatrolState());
    }
}
