Refactors, Introduce GameManager, Lobby work
This commit is contained in:
25
code/LobbyManager.cs
Normal file
25
code/LobbyManager.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using LuckerParty.UI;
|
||||
|
||||
namespace LuckerParty;
|
||||
|
||||
public sealed class LobbyManager : Component
|
||||
{
|
||||
private PanelComponent _panelComponent;
|
||||
|
||||
protected override void OnEnabled()
|
||||
{
|
||||
var screenPanel = Scene.Directory.FindByName( "UI Root" ).First();
|
||||
_panelComponent = screenPanel.AddComponent<Lobby>();
|
||||
}
|
||||
|
||||
protected override void OnDisabled()
|
||||
{
|
||||
_panelComponent.Destroy();
|
||||
_panelComponent = null;
|
||||
}
|
||||
|
||||
public interface ILobbyEvent : ISceneEvent<ILobbyEvent>
|
||||
{
|
||||
void OnStartGame( RoundConfiguration roundConfiguration );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user