// Use this for initialization void Start() { buttonManagerScript.enterCutscene(); _rectTransform = commentaryDialogueBox.GetComponent <RectTransform> (); _backgroundVolume = PlayerPrefs.GetFloat("BGSlider"); _masterVolume = PlayerPrefs.GetFloat("MSTRSlider"); if (_masterVolume > _backgroundVolume) { _volume = _backgroundVolume; } else { _volume = _masterVolume; } backgroundAudioSource.volume = 0; if (skipIntro == true) { blackScreen.color = Color.clear; text.color = Color.clear; buttonManagerScript.exitCutscene(); } else { StartCoroutine(TutorialIntro()); } }
// Use this for initialization void Start() { if (buttonManagerScript == null) { Debug.LogError("Button Manager Unassigned in NonTutorial Level Introduction"); } else { buttonManagerScript.enterCutscene(); } if (skipIntro == true) { blackScreen.color = Color.clear; } else { StartCoroutine(NonTutorialIntro()); } }