mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
EndMeeting fixes
This commit is contained in:
1 parent
ed38f84a1f
commit
688ce902a4
1 file changed
+13
-1
@@ -1,9 +1,11 @@
|
||||
using HarmonyLib;
|
||||
using Hazel;
|
||||
using System.Text;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BetterAmongUs;
|
||||
namespace BetterAmongUs;
|
||||
|
||||
[HarmonyPatch(typeof(MeetingHud), nameof(MeetingHud.Start))]
|
||||
class MeetingHudStartPatch
|
||||
{
|
||||
@@ -165,4 +167,14 @@ class MeetingHudUpdatePatch
|
||||
TextObj.GetComponent<TextMeshPro>().text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(MeetingHud), nameof(MeetingHud.OnDestroy))]
|
||||
class MeetingHud_OnDestroyPatch
|
||||
{
|
||||
public static void Postfix()
|
||||
{
|
||||
Logger.LogHeader("Meeting Has Endded");
|
||||
RPC.SyncAllNames(force: true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user