private void Start() { vectorScore = gameManager.GetComponent <VectorScore>(); }
private void Start() { gameManager = GameObject.Find("GameManager"); vectorScore = gameManager.GetComponent <VectorScore>(); enemySpawn = gameManager.GetComponent <EnemySpawn>(); }
void Start() { rb = GetComponent <Rigidbody>(); gameManager = GameObject.Find("GameManager"); vectorScore = gameManager.GetComponent <VectorScore>(); }