/// <summary> /// Set tile and invoke tile changed event. /// </summary> protected bool InternalSetTile(Vector3Int position, GenericTile tile) { bool HasTile = tilemap.HasTile(position); tilemap.SetTile(position, tile); OnTileChanged.Invoke(position, tile); return(HasTile); }
/// <summary> /// Set tile and invoke tile changed event. /// </summary> protected void InternalSetTile(Vector3Int position, GenericTile tile) { tilemap.SetTile(position, tile); OnTileChanged.Invoke(position, tile); }