mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Removes IOnStateChanged calls from GameplayStateLoadController (#14617)
This commit is contained in:
parent
05f2111236
commit
349eae0b70
1 changed files with 1 additions and 11 deletions
|
|
@ -3,21 +3,11 @@ using Robust.Client.UserInterface.Controllers;
|
|||
|
||||
namespace Content.Client.UserInterface.Systems.Gameplay;
|
||||
|
||||
public sealed class GameplayStateLoadController : UIController, IOnStateChanged<GameplayState>
|
||||
public sealed class GameplayStateLoadController : UIController
|
||||
{
|
||||
public Action? OnScreenLoad;
|
||||
public Action? OnScreenUnload;
|
||||
|
||||
public void OnStateEntered(GameplayState state)
|
||||
{
|
||||
LoadScreen();
|
||||
}
|
||||
|
||||
public void OnStateExited(GameplayState state)
|
||||
{
|
||||
UnloadScreen();
|
||||
}
|
||||
|
||||
public void UnloadScreen()
|
||||
{
|
||||
OnScreenUnload?.Invoke();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue