Exemple #1
0
 public float Distance(Vector3Int node, Vector3Int neighbor)
 {
     return(5 / (allowedTiles.GetSpeed(tilemap.GetTile(neighbor))));
 }
Exemple #2
0
 protected void UpdateTimeBetweenSteps(TileBase tileBase)
 {
     speed            = allowedTiles.GetSpeed(tileBase);
     timeBetweenSteps = 5 / speed;
 }