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