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