// Start is called before the first frame update void Start() { areaCalculator = transform.GetComponentInParent <AreaCalculator>(); areaCalculator.Attach(this); }
// Start is called before the first frame update void Start() { areaCalculator = FindObjectOfType <AreaCalculator>(); areaCalculator.Attach(this); }