Add lobby and scene managers, implement scene switching with fade in/out

This commit is contained in:
2024-08-20 18:47:34 +02:00
parent 0d490be61a
commit 3f64f82464
28 changed files with 353 additions and 19 deletions

View File

@@ -1,18 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Zenject;
public class LobbyInstaller : MonoBehaviour
public class LobbyInstaller : MonoInstaller
{
// Start is called before the first frame update
void Start()
public override void InstallBindings()
{
Container.Bind<LobbyManager>()
.FromComponentsInNewPrefabResource("Managers/LobbyManager")
.AsSingle()
.OnInstantiated<LobbyManager>((ctx, obj) =>
{
obj.name = "LobbyManager";
})
.NonLazy();
}
// Update is called once per frame
void Update()
{
}
}
}