private void RefreshGender() { genderText.text = currentCharacter.Gender.ToString(); currentCharacter.RefreshGenderBodyParts(); headSpriteController.reference = currentCharacter.headSpriteIndex; torsoSpriteController.reference = currentCharacter.torsoSpriteIndex; headSpriteController.UpdateSprite(); torsoSpriteController.UpdateSprite(); }
private void RefreshGender() { genderText.text = currentCharacter.Gender.ToString(); currentCharacter.RefreshGenderBodyParts(); if (currentCharacter.Gender == Gender.Female) { headSpriteController.sprites = StaticSpriteHandler.CompleteSpriteSetup(playerTextureData.Female.Head); torsoSpriteController.sprites = StaticSpriteHandler.CompleteSpriteSetup(playerTextureData.Female.Torso); } else { headSpriteController.sprites = StaticSpriteHandler.CompleteSpriteSetup(playerTextureData.Male.Head); torsoSpriteController.sprites = StaticSpriteHandler.CompleteSpriteSetup(playerTextureData.Male.Torso); } headSpriteController.UpdateSprite(); torsoSpriteController.UpdateSprite(); }