private static void PlayVoice(AudioSource audioSource, Manager.Voice.Loader loader) { if (loader.asset.IsNullOrEmpty()) { return; } if (SubtitleDictionary.TryGetValue(loader.asset, out string text)) { Caption.DisplaySubtitle(audioSource.gameObject, text); } else if (HSceneInstance != null) { Caption.DisplayHSubtitle(loader.asset, loader.bundle, audioSource.gameObject); } else if (EstheticProcInstance != null) { Caption.DisplayEstheticSubtitle(loader.asset, loader.bundle, audioSource.gameObject); } else if (ActionGameInfoInstance != null && GameObject.Find("ActionScene/ADVScene") == null) { Caption.DisplayDialogueSubtitle(loader.asset, loader.bundle, audioSource.gameObject); } }