public void AddAsset(TextureAsset asset) { var exists = Assets.Any(t => t.GetAsset() == asset.GetAsset()); if (!exists) Assets.Add(asset); }
protected override void AddNewAsset(Object o) { var texture = (Texture2D) o; EditorUtil.CheckTexture(texture); var t = new TextureAsset(texture); ((TileSet)CurrentSet).AddAsset(t); }
public void RemoveAsset(TextureAsset asset) { Assets.Remove(asset); }