[add] New ghostrespawn system
This commit is contained in:
@@ -120,6 +120,8 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
Gui.ReturnToBodyPressed += ReturnToBody;
|
||||
Gui.GhostRolesPressed += GhostRolesPressed;
|
||||
Gui.TargetWindow.WarpClicked += OnWarpClicked;
|
||||
Gui.ReturnToRoundPressed += ReturnToRound;
|
||||
|
||||
|
||||
UpdateGui();
|
||||
}
|
||||
@@ -133,6 +135,8 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
Gui.ReturnToBodyPressed -= ReturnToBody;
|
||||
Gui.GhostRolesPressed -= GhostRolesPressed;
|
||||
Gui.TargetWindow.WarpClicked -= OnWarpClicked;
|
||||
Gui.ReturnToRoundPressed -= ReturnToRound;
|
||||
|
||||
|
||||
Gui.Hide();
|
||||
}
|
||||
@@ -142,6 +146,11 @@ public sealed class GhostUIController : UIController, IOnSystemChanged<GhostSyst
|
||||
_system?.ReturnToBody();
|
||||
}
|
||||
|
||||
private void ReturnToRound()
|
||||
{
|
||||
_system?.ReturnToRound();
|
||||
}
|
||||
|
||||
private void RequestWarps()
|
||||
{
|
||||
_system?.RequestWarps();
|
||||
|
||||
Reference in New Issue
Block a user