Exemplo n.º 1
0
 public CreatePath(Vector2Int from, Vector2Int tilePos, MyTile.TileType tileType, Vector2Int offset)
 {
     this.from     = from;
     this.tilePos  = tilePos;
     this.tileType = tileType;
     this.offset   = offset;
 }
Exemplo n.º 2
0
        public bool MyTileType(int dx, int dy, MyTile.TileType type)
        {
            if (myTile[dx, dy] != null && myTile[dx, dy].type == type)
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 3
0
 public Path(Vector2Int tilePos, MyTile.TileType tileType, Vector2Int offset)
 {
     this.tilePos  = tilePos;
     this.tileType = tileType;
     this.offset   = offset;
 }