// Start is called before the first frame update void Start() { foreach (GameObject level in levels) { // Used for setting cloud animation to false at the beginning foreach (GameObject cloud in levelUpTransition) { cloud.GetComponent <ParticleSystem>().enableEmission = false; } // Making level 1 active when the game starts if (level.name.Contains("1")) { currentLevel = 1; level.SetActive(true); } else { level.SetActive(false); } townAudioClipSwitch = GameObject.Find("TownAudioClipSwitch").GetComponent <TownAudioClipSwitch>(); } metricMultiplierDictionary = new Dictionary <int, int>(); metricMultiplierDictionary.Add(1, 1); metricMultiplierDictionary.Add(2, 2); metricMultiplierDictionary.Add(3, 3); Multiplier = 1; }
// Start is called before the first frame update void Start() { cardFactory = new CardFactory(); currentCard = cardFactory.CurrentPlotCard; dialogueManager = DialogueManager.Instance; metricManager = MetricManager.Instance; dialogueMapper = new DialogueMapper(); animationHandler = spawnHandlerObject.GetComponent <SpawnHandler>(); levelProgress = GameObject.Find("LevelProgress").GetComponent <LevelProgressScript>(); townAudioClipSwitch = GameObject.Find("TownAudioClipSwitch").GetComponent <TownAudioClipSwitch>(); }