// Start is called before the first frame update void Start() { gloomProjectileController = transform.GetChild(0).GetComponent <GloomProjectileController>(); var audioSources = GetComponents <AudioSource>(); playerAudio = audioSources[0]; chargingAudio = audioSources[1]; }
void Start() { gameOverDisplay = gameOverDisplayGO.GetComponent <GameOverDisplay>(); player = playerGO.GetComponent <PlayerController>(); gloomProjectileController = gloomProjectileControllerGO.GetComponent <GloomProjectileController>(); targetCounterText = targetCounterTextGO.GetComponent <TextMeshProUGUI>(); if (string.Equals(SceneManager.GetActiveScene().name, "Level1Scene")) { Debug.Log("I'M IN SCENE 1!!!"); } // Display number of kills to win level killsNeededToWin = 3; targetCounterText.SetText($"{killsNeededToWin}"); }