mirror of
https://github.com/ryzij/Cube-Tower-Defense.git
synced 2026-07-14 01:56:57 +00:00
Изменил переключение GameState, когда путь построен
This commit is contained in:
@@ -56,7 +56,6 @@ public class SandPathBuildService : MonoBehaviour
|
||||
|
||||
public void ResetPath()
|
||||
{
|
||||
// TODO: исправить удаление блоков финала пути
|
||||
for (int i = _predefinedBlocks.Length; i < _blocksInPath.Count; i++)
|
||||
{
|
||||
var block = _blocksInPath[i];
|
||||
@@ -85,6 +84,7 @@ public class SandPathBuildService : MonoBehaviour
|
||||
_currentBlock = _pathEnd;
|
||||
_blocksInPath.Add(_currentBlock);
|
||||
_onBuildComplete?.Invoke();
|
||||
_gameManager.CurrentState = GameManager.GameState.BuildingTurrets;
|
||||
}
|
||||
|
||||
DestroyBlock(block);
|
||||
|
||||
Reference in New Issue
Block a user