entity changes, classes
This commit is contained in:
parent
bda2b88796
commit
8bd4aedcf9
20 changed files with 1917 additions and 27 deletions
|
|
@ -62,7 +62,7 @@ public class PlayerEntityMovement : MonoBehaviour
|
|||
Deselect();
|
||||
}
|
||||
TileObject newTile = GridManager.instance.GetTileFromWorldPos(mouseGridPos);
|
||||
if (requestedTile != newTile)
|
||||
if (requestedTile != newTile && !newTile.blocked)
|
||||
{
|
||||
requestedTile = newTile;
|
||||
foreach (TileObject tile in pathRequested)
|
||||
|
|
@ -167,7 +167,7 @@ public class PlayerEntityMovement : MonoBehaviour
|
|||
StartCoroutine(selectedEntity.MoveToLocation(pathRequested.ToArray()));
|
||||
templateObject.SetActive(false);
|
||||
UncolorGrid();
|
||||
selectedEntity.actions--;
|
||||
ActionUIHandler.instance.UpdateActions(1);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue