void Awake() { if (Instance == null) { Instance = this; } }
// At the start of the game, make the EndScreen see through. void Start() { endScreenBackground = endScreen.GetComponentInChildren <Image>(); endScreenText = endScreen.GetComponentInChildren <Text>(); endScreenBackground.color = new Color(255, 0, 0, 0f); endScreenText.color = new Color(255, 255, 255, 0); asteroidController = this.gameObject.GetComponent <AsteroidGameController>(); }