private void Start()
 {
     scoreScript       = FindObjectOfType <ScoreScript>();
     moveScript        = FindObjectOfType <MoveScript>();
     spawnerScript     = FindObjectOfType <SpawnerScript>();
     infiniScoreScript = FindObjectOfType <InfiniScoreScript>();
     carScript         = FindObjectOfType <CarScript>();
 }
Exemple #2
0
 private void Start()
 {
     carScript         = FindObjectOfType <CarScript>();
     infiniScoreScript = FindObjectOfType <InfiniScoreScript>();
 }