Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     gameState          = FindObjectOfType <GameStatusSingle>();
     enemySpawner       = FindObjectOfType <EnemySpawner>();
     shotCounter        = Random.Range(minShotTime, maxShotTime);
     transform.position = waypoints[wayPointIndex].position;
 }
Esempio n. 2
0
 private void Start()
 {
     gameStatus = FindObjectOfType <GameStatusSingle>();
     gameStatus.TextFieldToUse(GetComponent <TextMeshProUGUI>());
     GetComponent <TextMeshProUGUI>().text = gameStatus.GetScore().ToString();
 }