Add lobby and scene managers, implement scene switching with fade in/out
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user