private void GetEnemyComponents() { movement = GetComponent <EnemyMovement>(); attack = GetComponent <EnemyAttack>(); pjBoy = GameObject.FindObjectOfType <PJMovement>(); animator = GetComponent <Animator>(); }
void Start() { pjboyMovement = GetComponent <PJMovement>(); slingshot = GetComponent <SlingshotManager>(); }