예제 #1
0
 public static void PlayVoice(LoadAudioBase __instance)
 {
     if (Subtitles.SubtitleDictionary.TryGetValue(__instance.assetName, out string text))
     {
         Caption.DisplaySubtitle(__instance, text);
     }
 }
예제 #2
0
        public static void PlayVoice(LoadVoice __instance)
        {
            if (__instance.audioSource == null || __instance.audioSource.clip == null || __instance.audioSource.loop)
            {
                return;
            }

            if (Subtitles.HSceneProcInstance != null)
            {
                Caption.DisplayHSubtitle(__instance);
            }
            else if (Subtitles.ActionGameInfoInstance != null && GameObject.Find("ActionScene/ADVScene") == null)
            {
                Caption.DisplayDialogueSubtitle(__instance);
            }
            else if (Subtitles.SubtitleDictionary.TryGetValue(__instance.assetName, out string text))
            {
                Caption.DisplaySubtitle(__instance, text);
            }
        }
예제 #3
0
 public static void HVoiceCtrlInit()
 {
     Caption.InitGUI();
     Subtitles.HSceneProcInstance = Object.FindObjectOfType <HSceneProc>();
 }
예제 #4
0
 public static void InfoInit(Info __instance)
 {
     Caption.InitGUI();
     Subtitles.ActionGameInfoInstance = __instance;
 }