private bool CanMove(WorldTile moveFrom, WorldTile moveTo) { return(moveFrom != null && moveFrom.army != null && moveFrom.army.CanMove() && moveTo.IsPassable() && HexUtils.AreNeighbors(moveFrom.LocalPlace, moveTo.LocalPlace)); }
public bool CanMove() { return(selectedTile != null && selectedTile.army != null && selectedTile.army.CanMove() && hovoredTile.IsPassable() && HexUtils.AreNeighbors(selectedTile.LocalPlace, hovoredTile.LocalPlace)); }