// Start is called before the first frame update void Start() { asteroids = new List <Asteroid_Control>(); ScreenText = FindObjectOfType <PutTextHere>(); asteroid_display = ScreenText.createText("Number Of Asteroids :"); score_display = ScreenText.createText("Score :"); shield_display = ScreenText.createText("Shield: "); for (int i = 0; i < PersistentScript.numberOfAsteroids; i++) { asteroids.Add(spawnNewAsteroid()); } players_ship = FindObjectOfType <ShipControl>(); }
// Start is called before the first frame update void Start() { asteroids = new List <Asteroid_Control>(); ScreenText = FindObjectOfType <PutTextHere>(); asteroid_display = ScreenText.createText("Asteroids: ", PutTextHere.Screen_Placements.Up); score_display = ScreenText.createText("Score: 0", PutTextHere.Screen_Placements.Down); shield_display = ScreenText.createText("Shield: 100", PutTextHere.Screen_Placements.Down, PutTextHere.Screen_Placements.Left); for (int i = 0; i < PersistentScript.numberOfAsteroids; i++) { asteroids.Add(spawnNewAsteroid()); } players_ship = FindObjectOfType <ShipControl>(); }