private void Start() { float loadTime = Random.Range(0, loadTimeMax); timer = loadTime; _missionBox = FindObjectOfType <MissionBox>(); }
public void TetherAndSetNewMission(MissionBox newMissionBox, string npcName) { if (OptionManager.GetIntIfExists("language") != int.MinValue) { switch (OptionManager.GetIntIfExists("language")) { case 0: //Swedish currentLanguage = Language.Swedish; break; case 1: //English currentLanguage = Language.English; break; } } if (newMissionBox != null) { this.missionBox = newMissionBox; } if (currentLanguage == Language.Swedish) { this.missionBox.CreateMissionScreen(swedishInfo.missionName, swedishInfo.missionDescription, missionPortrait, targetSceneName, npcName); } else { this.missionBox.CreateMissionScreen(englishInfo.missionName, englishInfo.missionDescription, missionPortrait, targetSceneName, npcName); } }