void Awake() { pathfindingComponent = this.gameObject.GetComponent <CrowEnemyAIPathfinding>(); crowEnemyScript = this.gameObject.GetComponent <CrowEnemy>(); animationComponent = this.gameObject.transform.GetComponentInChildren <SkeletonEnemy_Animation>(); quirkManager = FindObjectOfType <QuirkManager>(); }
private void Awake() { soundManager = FindObjectOfType <SoundManager>(); animator = this.GetComponent <Animator>(); if (this.gameObject.transform.GetComponentInParent <CrowEnemy>() != null) { baseCrowClass = this.gameObject.transform.GetComponentInParent <CrowEnemy>(); } }