private void Awake() { lineOfSightVisual = GetComponent <LineOfSightVisual>(); lineofsight = GetComponent <LineOfSight>(); shooting1 = GetComponent <Shooting1>(); chaseAI = GetComponent <ChaseAI>(); }
void Start() { player = GameObject.FindGameObjectWithTag("Player").transform; baseCol = GetComponentInParent <BoxCollider2D>(); CurrFov = Fov; CurrRange = range; lineOfSightVisual = GetComponent <LineOfSightVisual>(); }
// Use this for initialization void Awake () { lineOfSightVisual = GetComponent<LineOfSightVisual>(); lineofsight = GetComponent<LineOfSight>(); shooting1 = GetComponent<Shooting1>(); }