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; }
void Start() { GlobalGO = Camera.main.GetComponentInChildren <GlobalView> (); rigidbody = GetComponent <Rigidbody2D> (); }