Esempio n. 1
0
        public static void onClick(CooldownButton bttn)
        {
            MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(PlayerControl.LocalPlayer.NetId, (byte)CustomRPC.TimeEdit, Hazel.SendOption.None, -1);

            writer.Write(true);
            AmongUsClient.Instance.FinishRpcImmediately(writer);
            //PlayerControl.LocalPlayer.Collider.isTrigger = true;
        }
Esempio n. 2
0
 public static void Postfix(HudManager __instance)
 {
     if (ShipStatus.Instance != null)
     {
         CooldownButton.HudUpdate();
     }
     else
     {
         HudStartPatch.freezeButton.killButtonManager.gameObject.SetActive(false);
     }
 }
Esempio n. 3
0
        public static void Postfix(HudManager __instance)
        {
            #region add the freeze button
            freezeButton = new CooldownButton(delegate()
            {
                FreezeButton.onClick(freezeButton);
            }, HarmonyMain.freezeCooldown.GetValue(), "StopTime.Assets.freeze.png", 100f, Vector2.zero, CooldownButton.Category.OnlyImpostor, __instance, HarmonyMain.freezeTimer.GetValue(), delegate()
            {
                FreezeButton.onEnd();
            });

            freezeButton.killButtonManager.gameObject.SetActive(false);
            #endregion
        }