Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
commandf1 committed Aug 14, 2024
1 parent 51108fe commit 2a31835
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion COG/Listener/Impl/CustomWinnerListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using COG.Config.Impl;
using COG.Constant;
using COG.Game.CustomWinner;
using COG.Game.CustomWinner.Data;
using COG.Listener.Event.Impl.AuClient;
using COG.Listener.Event.Impl.Game;
using COG.Role;
Expand Down
3 changes: 1 addition & 2 deletions COG/Listener/Impl/GameListener.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Drawing;
using System.Linq;
using System.Text;
using AmongUs.GameOptions;
using COG.Config.Impl;
using COG.Constant;
using COG.Listener.Event;
using COG.Listener.Event.Impl.AuClient;
using COG.Listener.Event.Impl.Game;
using COG.Listener.Event.Impl.GSManager;
using COG.Listener.Event.Impl.HManager;
Expand Down Expand Up @@ -386,6 +384,7 @@ private static void SelectRoles()
[EventHandler(EventHandlerType.Postfix)]
public void OnSelectRoles(RoleManagerSelectRolesEvent @event)
{

if (!AmongUsClient.Instance.AmHost) return;

Main.Logger.LogInfo("Select roles for players...");
Expand Down
1 change: 0 additions & 1 deletion COG/Role/Impl/Crewmate/Technician.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using COG.UI.CustomButton;
using COG.Utils;
using COG.Utils.Coding;
using System.Linq;
using UnityEngine;

namespace COG.Role.Impl.Crewmate;
Expand Down
1 change: 0 additions & 1 deletion COG/States/GameStates.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using COG.Role;
using COG.Rpc;
using COG.Utils;

namespace COG.States;
Expand Down
1 change: 0 additions & 1 deletion COG/Utils/PlayerUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using COG.Config.Impl;
using COG.Listener;
using COG.Listener.Event.Impl.AuClient;
using COG.Listener.Event.Impl.ICutscene;
using COG.Listener.Event.Impl.Player;
using COG.Role;
using COG.Role.Impl;
Expand Down

0 comments on commit 2a31835

Please sign in to comment.