コード例 #1
0
 /// <summary>
 /// Update bounds based on the added coordinate.
 /// </summary>
 /// <param name="inCoordinate">Coordinate to extend the bounds with.</param>
 private void UpdateBounds(Vector2Int inCoordinate)
 {
     if (_gridBounds == null)
     {
         _gridBounds = new Vector2IntRect(inCoordinate);
     }
     else
     {
         _gridBounds.UpdateRect(inCoordinate);
     }
 }
コード例 #2
0
 /// <summary>
 /// Clear the tile dictionary and save.
 /// </summary>
 public void ClearTiles()
 {
     Tiles.Clear();
     _gridBounds = null;
     Save();
 }