public CharacterCreationData() { Genders = new SexTypeEnum [] { SexTypeEnum.SEX_MALE, SexTypeEnum.SEX_FEMALE }; }
public SexChallenge(int id, IFight fight) : base(id, fight) { BonusMin = 35; BonusMax = 35; m_sexType = id == (int)ChallengeEnum.NI_PIOUTES_NI_SOUMISES ? SexTypeEnum.SEX_FEMALE : SexTypeEnum.SEX_MALE; }
public ActorLook GetLook(SexTypeEnum sex, bool clone = false) { if (clone) { return(sex == SexTypeEnum.SEX_FEMALE ? FemaleLook.Clone() : MaleLook.Clone()); } return(sex == SexTypeEnum.SEX_FEMALE ? FemaleLook : MaleLook); }
public ActorLook GetLook(SexTypeEnum sex, bool clone = false) { ActorLook result; if (clone) { result = ((sex == SexTypeEnum.SEX_FEMALE) ? this.FemaleLook.Clone() : this.MaleLook.Clone()); } else { result = ((sex == SexTypeEnum.SEX_FEMALE) ? this.FemaleLook : this.MaleLook); } return(result); }
/// <summary> /// 改变性别 /// </summary> /// <param name="sexType"></param> public void ChangeSex(SexTypeEnum sexType) { CreatureCptCharacter character = GetCharacter(); character.characterSkin.ChangeSex(sexType); ui_Man.interactable = true; ui_Woman.interactable = true; switch (sexType) { case SexTypeEnum.Man: ui_Man.interactable = false; ui_SexTitle.text = TextHandler.Instance.GetTextById(33); break; case SexTypeEnum.Woman: ui_Woman.interactable = false; ui_SexTitle.text = TextHandler.Instance.GetTextById(34); break; } }
/// <summary> /// 改变性别 /// </summary> /// <param name="sexType"></param> public void ChangeSex(SexTypeEnum sexType) { this.characterData.SetSex(sexType); long skinId = 0; switch (sexType) { case SexTypeEnum.Man: skinId = 2; break; case SexTypeEnum.Woman: skinId = 1; break; } CharacterInfoBean characterInfo = CreatureHandler.Instance.manager.GetCharacterInfoSkin(skinId); if (characterInfo == null) { LogUtil.LogError($"查询皮肤数据失败,没有ID为 {skinId} 的皮肤数据"); } else { CreatureHandler.Instance.manager.GetCharacterSkinTex(characterInfo.model_name, (data) => { if (data == null) { LogUtil.LogError($"查询皮肤贴图失败,没有名字为 {characterInfo.model_name} 的皮肤贴图"); } else { bodyMat.mainTexture = data; } }); } }
/// <summary> /// 设置性别 /// </summary> /// <param name="sexType"></param> public void SetSex(SexTypeEnum sexType) { this.characterSex = (int)sexType; }
public uint[] GetColors(SexTypeEnum sex) => sex == SexTypeEnum.SEX_FEMALE ? FemaleColors : MaleColors;