Beispiel #1
0
 public TilePosition(Tile tile, Vector2Int index)
 {
     this.tile  = tile;
     this.index = index;
     position   = tile.GetCentoid();
     spatialSearch.Add(this);
 }
Beispiel #2
0
 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);
 }