private void Start()
 {
     _gm = GameObject.Find("Game Manager").GetComponent <GameManagerX2>();
     if (gameObject.tag == "Dog")
     {
         speed += (_gm.wave - 1) * 2;
     }
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     _gm = GameObject.Find("Game Manager").GetComponent <GameManagerX2>();
 }
Beispiel #3
0
 void Start()
 {
     _gm = GameObject.Find("Game Manager").GetComponent <GameManagerX2>();
     //Debug.Log("Ball Spawned at x:" + Mathf.Floor(transform.position.x));
 }