Esempio n. 1
0
 private void Awake()
 {
     rb                    = GetComponent <Rigidbody>();
     sphereCollider        = GetComponent <SphereCollider>();
     weatherControl        = FindObjectOfType <WeatherControl>();
     sphereCollider.radius = 0f;
 }
Esempio n. 2
0
 private void Awake()
 {
     weatherControl = FindObjectOfType <WeatherControl>();
 }
Esempio n. 3
0
 private void Start()
 {
     weatherControl = transform.parent.GetComponent <VegetationFactory>().GetWeatherControl();
     ChangeColor();
     coroutine = Burn();
 }