флаг "глупые боты" перенесен в DifficultyManager

This commit is contained in:
se_ga 2026-03-20 13:37:58 +03:00
parent ee53fe9c89
commit 8432a3ab4c
3 changed files with 4 additions and 5 deletions

View File

@ -12,9 +12,8 @@ public class GameManager : MonoBehaviour
public int Rows = 7, Cols = 7;
public PlayerStatsService StatsService;
public bool dummyBots = false;
public int botsAmount = 5;
public DifficultyPreset MistressPreset;
public int boardVersion = 1;

View File

@ -31,7 +31,7 @@ public class DifficultyManager : MonoBehaviour
public DifficultyPreset DifficultyPreset => CharacterController.CurrentCharacter.CurrentDifficultyPreset;
public DifficultyPreset DummyPreset;
public bool dummyBots = false;
public void IncreaseDifficulty()
{
if (currentOpponent + 1 == CharacterController.CharactersAmount)//победили самую большую сложность

View File

@ -31,7 +31,7 @@ public class BotThinkingState : IState
//Установка пресета сложности
DifficultyPreset currentPreset = CharacterController.CurrentCharacter.CurrentDifficultyPreset;
//Debug.Log(currentPreset.Description);
if (GameManager.instance.dummyBots)
if (DifficultyManager.Instance.dummyBots)
currentPreset = DifficultyManager.Instance.DummyPreset;
if (preset!= null)
@ -49,7 +49,7 @@ public class BotThinkingState : IState
calcThread = new Thread(calc);
calcThread.Start();
startTime = Time.time;
if (GameManager.instance.dummyBots)
if (DifficultyManager.Instance.dummyBots)
timeToThink = 0;
CharacterEventBus.Instance.OnBotTurn?.Invoke();