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