Exemplo n.º 1
0
    /// <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);
    }
Exemplo n.º 2
0
 /// <summary>
 /// Set tile and invoke tile changed event.
 /// </summary>
 protected void InternalSetTile(Vector3Int position, GenericTile tile)
 {
     tilemap.SetTile(position, tile);
     OnTileChanged.Invoke(position, tile);
 }