public void LoadAnturaCustomization(AnturaCustomization _anturaCustomization) { ClearLoadedRewards(); foreach (RewardPack forniture in _anturaCustomization.Fornitures) { GameObject GOAdded = LoadRewardPackOnAntura(forniture); ModelsManager.SwitchMaterial(LoadRewardPackOnAntura(forniture), forniture.GetMaterialPair()); } LoadRewardPackOnAntura(_anturaCustomization.TileTexture); LoadRewardPackOnAntura(_anturaCustomization.DecalTexture); /// - decal }
public AnturaCustomization SaveAnturaCustomization() { AnturaCustomization returnCustomization = new AnturaCustomization(); foreach (LoadedModel loadedModel in LoadedModels) { returnCustomization.Fornitures.Add(new RewardPack() { ItemID = loadedModel.Reward.ItemID, ColorId = loadedModel.Reward.ColorId, Type = RewardTypes.reward }); } returnCustomization.TileTexture = LoadedTileTexture; returnCustomization.DecalTexture = LoadedDecal; AppManager.I.Player.SaveCustomization(returnCustomization); return(returnCustomization); }
/// <summary> /// Saves the customization. /// </summary> /// <param name="_anturaCustomization">The antura customization.</param> public void SaveCustomization(AnturaCustomization _anturaCustomization) { CurrentAnturaCustomizations = _anturaCustomization; Save(); }