private void Awake() { _myCol = GetComponentInParent <Collider>(); if (useProximityEffects) { _friendSearchAoE = GetComponent <AreaofEffect>(); if (_friendSearchAoE == null) { Debug.LogError("No Area of Effect Component for crowd agent " + gameObject.name); } } if (_myCol == null) { Debug.LogError("No collider for crowd agent " + gameObject.name); } // Cube Test //_myCol = GetComponent<BoxCollider>(); }
// Start is called before the first frame update protected override void Start() { base.Start(); _AoEComponent = GetComponent <AreaofEffect>(); }