Пресет для тестирования игры (DUMMY) Перенесен в DifficultyManager

This commit is contained in:
se_ga 2026-03-20 13:35:55 +03:00
parent 16b02e828a
commit ee53fe9c89
5 changed files with 5 additions and 8 deletions

View File

@ -11349,7 +11349,7 @@ Material:
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 1, g: 0.0684407, b: 0, a: 1}
- _GlowColor: {r: 0, g: 0.7897656, b: 1, a: 1}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _OutlineColor: {r: 0.554717, g: 0.554717, b: 0.554717, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}

View File

@ -5860,11 +5860,7 @@ MonoBehaviour:
rulesController: {fileID: 454272343}
menuOpened: 1
gameMode: 0
label: {fileID: 382964715}
buttonLeft: {fileID: 2047831684}
buttonRight: {fileID: 95872202}
coinPanel: {fileID: 829871288}
label2: {fileID: 109738548}
board: {fileID: 1551328425}
noPrizeLabel: {fileID: 1796045835}
mainMenu: {fileID: 1122363131}
@ -5984,6 +5980,7 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls: []
currentOpponent: 0
DummyPreset: {fileID: 11400000, guid: 35ba7f84d7557e8479f7f086269256f6, type: 2}
--- !u!114 &259182286
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -14,7 +14,6 @@ public class GameManager : MonoBehaviour
public PlayerStatsService StatsService;
public bool dummyBots = false;
public int botsAmount = 5;
public DifficultyPreset dummyPreset;
public DifficultyPreset MistressPreset;
public int boardVersion = 1;

View File

@ -28,8 +28,9 @@ public class DifficultyManager : MonoBehaviour
public UnityEvent OnVictory = new UnityEvent();
public int currentOpponent = 0;
public DifficultyPreset DifficultyPreset => CharacterController.CurrentCharacter.CurrentDifficultyPreset;
public DifficultyPreset DummyPreset;
public void IncreaseDifficulty()
{

View File

@ -32,7 +32,7 @@ public class BotThinkingState : IState
DifficultyPreset currentPreset = CharacterController.CurrentCharacter.CurrentDifficultyPreset;
//Debug.Log(currentPreset.Description);
if (GameManager.instance.dummyBots)
currentPreset = GameManager.instance.dummyPreset;
currentPreset = DifficultyManager.Instance.DummyPreset;
if (preset!= null)
{