mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
61f9976a46
commit
269661c41e
2 files changed
+7
-2
No files matched your search
@@ -460,7 +460,7 @@ public class ClientControlGUI : MonoBehaviour
|
||||
});
|
||||
|
||||
bool canZoom = Zoom.CanZoom;
|
||||
bool canNoClip = canMove && (!AmongUsClient.Instance.IsGameStarted || !GameStates.IsOnlineGame);
|
||||
bool canNoClip = canMove && (!AmongUsClient.Instance.IsGameStarted || !GameStates.IsOnlineGame) && (!GameStartManager.Instance || GameStartManager.Instance.startState == GameStartManager.StartingStates.NotStarting);
|
||||
bool canToggleHud = Main.IntroDestroyed && !inMeeting && !ExileController.Instance && !ReportDeadBodyPatch.MeetingStarted;
|
||||
|
||||
if (canZoom || canNoClip || canToggleHud)
|
||||
@@ -504,7 +504,11 @@ public class ClientControlGUI : MonoBehaviour
|
||||
if (OperatingSystem.IsAndroid()) PlayerControl.LocalPlayer.Collider.offset = ControllerManagerUpdatePatch.NoClipEnabled ? new Vector2(0f, 127f) : new Vector2(0f, -0.3636f);
|
||||
});
|
||||
}
|
||||
else if (OperatingSystem.IsAndroid() && PlayerControl.LocalPlayer) PlayerControl.LocalPlayer.Collider.offset = new Vector2(0f, -0.3636f);
|
||||
else if (ControllerManagerUpdatePatch.NoClipEnabled && OperatingSystem.IsAndroid() && PlayerControl.LocalPlayer)
|
||||
{
|
||||
PlayerControl.LocalPlayer.Collider.offset = new Vector2(0f, -0.3636f);
|
||||
ControllerManagerUpdatePatch.NoClipEnabled = false;
|
||||
}
|
||||
|
||||
if (canToggleHud)
|
||||
{
|
||||
|
||||
@@ -121,6 +121,7 @@ public static class OptionsMenuBehaviourStartPatch
|
||||
|
||||
static void Unload()
|
||||
{
|
||||
if (ClientControlGUI.Instance) Object.Destroy(ClientControlGUI.Instance);
|
||||
MainMenuManagerPatch.ShowRightPanelImmediately();
|
||||
|
||||
Main.Instance.Harmony.UnpatchSelf();
|
||||
|
||||
Reference in new issue
Block a user