// awake private void Awake() { healthScript = GetComponent <MobHealth>(); visionScript = GetComponentInChildren <VisionEnemy>(); myRigidbody2D = GetComponent <Rigidbody2D>(); player = GameObject.FindWithTag("Player").transform; myAnimator = GetComponent <Animator>(); DissappearScript = GetComponent <PBDissappear>(); jumpKickScript = GetComponent <PBossJumpKickBehaviour>(); }
private void Awake() { dissappearScript = GetComponent <PBDissappear>(); }