флаг "глупые боты" перенесен в DifficultyManager
This commit is contained in:
parent
ee53fe9c89
commit
8432a3ab4c
@ -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;
|
||||
|
||||
|
||||
@ -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)//победили самую большую сложность
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user