// 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>(); }
void Start() { metricManager = MetricManager.Instance; cardManager = CardManager.Instance; envHealth = (float)metricManager.EnvHealth; weatherEvents = new Dictionary <int, ClimateEvent>(); weatherEvents.Add(0, ClimateEvent.AcidRain); weatherEvents.Add(1, ClimateEvent.WildFire); weatherEvents.Add(2, ClimateEvent.Hurricane); weatherEvents.Add(3, ClimateEvent.Smog); turnCounter = TURN_COUNTER; currentEvent = ClimateEvent.NoEvent; eventIndex = Random.Range(0, 4); //y = ((5/((x+15)/100))-4)/30 function to map score to probability }