// Use this for initialization void Start() { //DM = GameObject.FindGameObjectWithTag("Player").GetComponent<DetectionManager>(); detected = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Detected>(); playerAnimator = GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>(); playerController = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); shooting = GetComponentInParent <Enemy_shooting>(); animator = GetComponentInParent <Animator>(); }
// Use this for initialization void Start() { shooting = GetComponentInParent <Enemy_shooting>(); //animator = GetComponentInParent<Animator>(); }
// Use this for initialization void Start() { shooting = GetComponentInParent <Enemy_shooting>(); }