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

public class NPCBase : StateMachineBehaviour
{
    public GameObject npc;
    public NavMeshAgent npcNav;
    public GameObject food;
    public NPCBrain brain;

    // can probably simplify this class?

    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        npc = animator.gameObject;
        npcNav = npc.GetComponent<NavMeshAgent>();
        brain = npc.GetComponent<NPCBrain>();
    }
}
