Add lobby and scene managers, implement scene switching with fade in/out
This commit is contained in:
21
Assets/Scripts/Managers/LobbyManager.cs
Normal file
21
Assets/Scripts/Managers/LobbyManager.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Sirenix.OdinInspector;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Zenject;
|
||||
|
||||
public class LobbyManager : MonoBehaviour
|
||||
{
|
||||
[Inject]
|
||||
[SerializeField]
|
||||
[ReadOnly]
|
||||
private MusicManager musicManager;
|
||||
|
||||
[SerializeField]
|
||||
private AudioClip backgroundMusicClip;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
musicManager.Play(backgroundMusicClip);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user