public TilePosition(Tile tile, Vector2Int index) { this.tile = tile; this.index = index; position = tile.GetCentoid(); spatialSearch.Add(this); }
public SelectionPoint() { current = this; grid = GameObject.Find("Grid").GetComponent <HexGrid>(); dotGameObject = GameObject.Find("SelectionPoint"); dotSpriteRenderer = dotGameObject.GetComponent <SpriteRenderer>(); outlineGameobject = dotGameObject.transform.GetChild(0).gameObject; outlineSpriteRenderer = outlineGameobject.GetComponent <SpriteRenderer>(); spatialSearch.Add(this); }