VanguardReMaster/client/Assets/Vanguard/Runtime/App/CollectionSceneController.cs

29 lines
688 B
C#

using UnityEngine;
using Vanguard.Meta;
using Vanguard.State;
using Vanguard.UI;
namespace Vanguard.App
{
public sealed class CollectionSceneController : SceneControllerBase
{
private CollectionView _view;
private void Start()
{
SceneEnvironment.Build(SceneTheme.Collection);
var canvas = CreateCanvas("Collection Canvas");
_view = new CollectionView(
canvas.transform,
Resolve<MetaService>(),
Resolve<PlayerState>(),
() => _ = Flow.LoadLobbyAsync());
}
private void OnDestroy()
{
_view?.Dispose();
}
}
}