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