Ejemplo n.º 1
0
 void Start()
 {
     GlobalGO   = Camera.main.GetComponentInChildren <GlobalView> ();
     rigidbody  = GetComponent <Rigidbody2D> ();
     walkTime   = Random.Range(2.0f, 3.0f);
     bushTime   = Random.Range(10.0f, 18.0f);
     timer_safe = Time.timeSinceLevelLoad;
 }
Ejemplo n.º 2
0
 void Start()
 {
     GlobalGO  = Camera.main.GetComponentInChildren <GlobalView> ();
     rigidbody = GetComponent <Rigidbody2D> ();
 }