From 8432a3ab4ceed0f8f637c35415a5b171e5049af3 Mon Sep 17 00:00:00 2001 From: se_ga Date: Fri, 20 Mar 2026 13:37:58 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=BB=D0=B0=D0=B3=20"=D0=B3=D0=BB=D1=83?= =?UTF-8?q?=D0=BF=D1=8B=D0=B5=20=D0=B1=D0=BE=D1=82=D1=8B"=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=20=D0=B2=20Difficult?= =?UTF-8?q?yManager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Core/GameManager.cs | 3 +-- Assets/Scripts/DifficultyManager.cs | 2 +- Assets/Scripts/GameFSM/BotThinkingState.cs | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/Core/GameManager.cs b/Assets/Scripts/Core/GameManager.cs index 67c64cf..8bf56a6 100644 --- a/Assets/Scripts/Core/GameManager.cs +++ b/Assets/Scripts/Core/GameManager.cs @@ -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; diff --git a/Assets/Scripts/DifficultyManager.cs b/Assets/Scripts/DifficultyManager.cs index c8e6b8e..eea2486 100644 --- a/Assets/Scripts/DifficultyManager.cs +++ b/Assets/Scripts/DifficultyManager.cs @@ -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)//победили самую большую сложность diff --git a/Assets/Scripts/GameFSM/BotThinkingState.cs b/Assets/Scripts/GameFSM/BotThinkingState.cs index fa40ea2..11ecede 100644 --- a/Assets/Scripts/GameFSM/BotThinkingState.cs +++ b/Assets/Scripts/GameFSM/BotThinkingState.cs @@ -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();