예제 #1
0
        public static T DoWithTempMute <T>(this IDialogController dialogController, Func <T> action)
        {
            dialogController.StopSound();
            var ret = action();

            dialogController.StartSound();
            return(ret);
        }
예제 #2
0
 public static void DoWithTempMute(this IDialogController dialogController, Action action)
 {
     dialogController.StopSound();
     action();
     dialogController.StartSound();
 }