void Awake() { _instance = this; player = GameObject.FindGameObjectWithTag(PlayerTag); gameDialogueObject = FindObjectOfType(typeof(GameDialogue)) as GameDialogue; scenarioControlObject = FindObjectOfType(typeof(ScenarioControl)) as ScenarioControl; backGroundMusicPlayer = FindObjectOfType(typeof(BackgroundMusicPlayer)) as BackgroundMusicPlayer; checkPointManager = FindObjectOfType(typeof(CheckPointManager)) as CheckPointManager; playerRuntimeCameraConfig = FindObjectOfType(typeof(PlayerCameraRuntimeConfig)) as PlayerCameraRuntimeConfig; }
void Start() { textBox = FindObjectOfType <GameDialogue>(); }