2023-10-12 19:12:46 +09:00
|
|
|
|
using FirstVillain.EventBus;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class LobbySceneController : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
private void Awake()
|
|
|
|
|
{
|
|
|
|
|
EventBus.Instance.Subscribe<EventStartLobby>(OnStartLobby);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnDestroy()
|
|
|
|
|
{
|
|
|
|
|
EventBus.Instance.Unsubscribe<EventStartLobby>(OnStartLobby);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnStartLobby(EventStartLobby e)
|
|
|
|
|
{
|
|
|
|
|
//<2F>κ<EFBFBD> UI Open
|
2023-10-16 18:47:52 +09:00
|
|
|
|
UIManager.Instance.OpenUI(E_UI_TYPE.UIPanelLobby, OnLobbyUIOpened);
|
2023-10-12 19:12:46 +09:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnLobbyUIOpened(UIBase lobbyUI)
|
|
|
|
|
{
|
|
|
|
|
//LobbyUI SetData
|
|
|
|
|
|
|
|
|
|
UIManager.Instance.CloseLoadingUI();
|
|
|
|
|
}
|
|
|
|
|
}
|