Exemplo n.º 1
0
        private void LoadSuitedOutfit()
        {
            if (_playerData.suitedOutfit == null)
            {
                return;
            }
            var outfitSerializer = new OutfitSerializer();

            var suitedOutfit = outfitSerializer.Deserialize(_playerData.suitedOutfit);

            ParameterManager.Instance.suitedOutfit = suitedOutfit;
        }
Exemplo n.º 2
0
        private OutfitData GetSuitedOutfit()
        {
            var outfit = _player.GetComponent <OutfitComponent>().GetOutfit();

            if (outfit == null)
            {
                return(null);
            }

            var outfitSerializer = new OutfitSerializer();

            return(outfitSerializer.Serialize(outfit));
        }