void Awake() { anim = GetComponent <Animator>(); botUtility = GetComponentInParent <BotUtility>(); health = botUtility.GetComponent <PlayerHealth>(); ammo = botUtility.GetComponentInChildren <PlayerAmmo>(); }
void Awake() { anim = GetComponent <Animator>(); botUtility = GetComponentInParent <BotUtility>(); health = botUtility.GetComponent <PlayerHealth>(); ammo = botUtility.GetComponentInChildren <PlayerAmmo>(); }