Exemple #1
0
 // 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());
 }
Exemple #2
0
 // 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>();
 }