Skip to content

Instantly share code, notes, and snippets.

@allencoded
Last active June 2, 2018 17:44
Show Gist options
  • Save allencoded/6cbc340b55c60b2f8c77cab2857e7cf1 to your computer and use it in GitHub Desktop.
Save allencoded/6cbc340b55c60b2f8c77cab2857e7cf1 to your computer and use it in GitHub Desktop.
WorldTile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class WorldTile {
public Vector3Int LocalPlace { get; set; }
public Vector3 WorldLocation { get; set; }
public TileBase TileBase { get; set; }
public Tilemap TilemapMember { get; set; }
public string Name { get; set; }
// Below is needed for Breadth First Searching
public bool IsExplored { get; set; }
public WorldTile ExploredFrom { get; set; }
public int Cost { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment