mirror of
https://github.com/ryzij/Cube-Tower-Defense.git
synced 2026-07-14 01:56:57 +00:00
Исправлен детект блоков
This commit is contained in:
@@ -72,7 +72,8 @@ public class SandPathBuildService : MonoBehaviour
|
||||
{
|
||||
if (_gameManager.CurrentState != GameManager.GameState.BuildingPath)
|
||||
return;
|
||||
if (!_currentBlock.GetNeighbors().Contains(block) ||
|
||||
if (!block.CompareTag("GrassBlock") ||
|
||||
!_currentBlock.GetNeighbors().Contains(block) ||
|
||||
block.GetNeighbors().Count((o) => o.Type == BlockScript.BlockType.Sand) > 1)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user