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