added playable location and main menu
This commit is contained in:
1 parent
ec8d233189
commit
b87010d2e5
42 files changed
+19291
-29
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using Code.DI;
|
||||
using Code.Input;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.UI
|
||||
{
|
||||
public class GameplayController : MonoBehaviour
|
||||
{
|
||||
private IInputService _inputService;
|
||||
private AudioSource _audioSource;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
var container = FindFirstObjectByType<DIContainer>();
|
||||
_inputService = container.Resolve<IInputService>();
|
||||
_inputService.EnableMap(ActionMapping.Gameplay);
|
||||
_audioSource = FindFirstObjectByType<AudioSource>();
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
_inputService.DisableMap(ActionMapping.Gameplay);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user