// Start is called before the first frame update void Start() { _gm = GameObject.Find("Game Manager").GetComponent <U3GameManager>(); //_spawnPos.x = 20f; //InvokeRepeating("SpawnTemp", _startDelay, 15);//_repeatRate); StartCoroutine(SpawnObstacle()); }
// Start is called before the first frame update void Start() { _gm = GameObject.Find("Game Manager").GetComponent <U3GameManager>(); _playerRB = GetComponent <Rigidbody>(); _playerAnim = GetComponent <Animator>(); _playerAudio = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { _gm = GameObject.Find("Game Manager").GetComponent <U3GameManager>(); }