Inheritance: MonoBehaviour
 void Start()
 {
     GameObject environ = GameObject.FindGameObjectWithTag("Environment");
     rw = environ.GetComponent<RandomWeather>();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     environment = GameObject.FindGameObjectWithTag ("Environment");
     rw = environment.GetComponent<RandomWeather> ();
     secondsPassed = 0f;
     Reset();
 }