ИИ гонщиков, запуск, перезапуск игры и пр

This commit is contained in:
ThomasCharester committed 2026-02-09 16:22:37 +03:00
1 parent f557c58c9d
commit efcfaae647
48 files changed
+1486 -212

No files matched your search

+10 -1
View File
@@ -1,8 +1,10 @@
using System.Collections.Generic;
using Code.Infrastructure.App;
using Code.Infrastructure.SceneLoader;
using Reflex.Attributes;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
namespace Code.Debug
{
@@ -12,7 +14,7 @@ namespace Code.Debug
[Inject] private AppStateMachine _stateMachine;
public void ChooseScene(int id)
{
_sceneLoader.LoadSceneAsync((SceneId)id, LoadSceneMode.Single).Forget();
_sceneLoader.LoadSceneAsync((SceneId)id, LoadSceneMode.Additive).Forget();
}
public void ChooseState(int id)
@@ -24,5 +26,12 @@ namespace Code.Debug
{
_stateMachine.SwitchState(AppStates.Gameplay).AllowStateTransition(AppStates.MainMenu);
}
[SerializeField] private List<Button> buttons;
public void EnableButtons()
{
foreach (var button in buttons) button.interactable = true;
}
}
}