// Update is called once per frame public void Update() { indicators = new List <Indicator>(indicatorsWrapper.GetComponentsInChildren <Indicator>()); }
// Use this for initialization void Start() { indicatorsWrapper = GetComponentInChildren <Indicators>(); indicators = new List <Indicator>(indicatorsWrapper.GetComponentsInChildren <Indicator>()); }