private void LoadSuitedOutfit() { if (_playerData.suitedOutfit == null) { return; } var outfitSerializer = new OutfitSerializer(); var suitedOutfit = outfitSerializer.Deserialize(_playerData.suitedOutfit); ParameterManager.Instance.suitedOutfit = suitedOutfit; }
private OutfitData GetSuitedOutfit() { var outfit = _player.GetComponent <OutfitComponent>().GetOutfit(); if (outfit == null) { return(null); } var outfitSerializer = new OutfitSerializer(); return(outfitSerializer.Serialize(outfit)); }