public void GenerateKey() { Banner banner = new Banner(BaseKey); if (!HasIcon) { banner.ClearAllIcons(); banner.SetBackgroundMeshId(Mesh); banner.ChangeBaseColors(PrimaryColor, SecondaryColor); banner.BannerDataList[0].Mirror = Mirrored; } else { banner.ChangeIconMesh(Mesh); banner.ChangeBaseColors(SecondaryColor, SecondaryColor); banner.ChangeIconColor(PrimaryColor); banner.BannerDataList[1].Mirror = Mirrored; } Key = banner.Serialize(); }