// 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; }
private void Start() { gameStatus = FindObjectOfType <GameStatusSingle>(); gameStatus.TextFieldToUse(GetComponent <TextMeshProUGUI>()); GetComponent <TextMeshProUGUI>().text = gameStatus.GetScore().ToString(); }