void Start() { m_parentCombatUnit = transform.parent.GetComponent <CombatUnit>(); if (m_parentCombatUnit == null) { Debug.LogError("AggroRange without Combat unit", this); } GetComponent <SphereCollider>().radius = m_parentCombatUnit.GetRangeAggro(); }