private void Awake() { fov = GetComponent <FieldOfView>(); AIindicators = GameObject.Find("Monster Indicators").GetComponent <CanvasGroup>(); agent = GameObject.Find("Monster/view visualization").GetComponent <ViewIndicator>(); }
private void Awake() { fov = GetComponents <FieldOfView>(); AIindicators = GameObject.Find("Monster Indicators").GetComponent <CanvasGroup>(); agent = GameObject.Find("Monster").GetComponentInChildren <ViewIndicator>(); }