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