Пример #1
0
        static void Prefix(string name)
        {
            AnnouncerOptions options = G.Sys.OptionsManager_.Audio_.AnnouncerOptions_;

            if ((options & AnnouncerOptions.AllModes) == AnnouncerOptions.AllModes || (options & AnnouncerOptions.ArcadeOnly) == AnnouncerOptions.ArcadeOnly)
            {
                COUNTDOWN_ANNOUNCER.GetClip(name).PlayFromStart();
            }
        }
Пример #2
0
        public void Initialize(IManager manager, string ipcIdentifier)
        {
            HarmonyInstance.Create("com.Larnin.NitronicHUD").PatchAll(Assembly.GetExecutingAssembly());

            hud       = HUD.Create();
            countdown = COUNTDOWN.Create();

            COUNTDOWN_ANNOUNCER.Initialize();
        }
Пример #3
0
 public void Update()
 {
     COUNTDOWN_ANNOUNCER.Update();
     if (hud != null)
     {
         hud.update();
     }
     if (countdown != null)
     {
         countdown.update();
     }
 }
Пример #4
0
 static void Prefix(AudioManager __instance)
 {
     COUNTDOWN_ANNOUNCER.Dispose();
 }