/// <summary> スケーリング情報をデータクラスに反映させる。 </summary> public void GenerateAvatar(HumanSlideModel model) { this[Key.Gender].Muscle = model.Gender; this[Key.Height].Muscle = model.Height; this[Key.Waist].Muscle = model.Waist; this[Key.Head].Muscle = model.Head; this[Key.ArmThick].Muscle = model.ArmThick; this[Key.LegThick].Muscle = model.LegThick; foreach (HumanScale.Key key in Enum.GetValues(typeof(HumanScale.Key))) { _humanScale[key].Scale = new Vector3(1, 1, 1); } foreach (Key key in Enum.GetValues(typeof(Key))) { this[key].Done(); } }
public void SetData(HumanSlideModel model) { // リセット foreach (HumanScale.Key key in Enum.GetValues(typeof(HumanScale.Key))) { _humanScale[key].Scale = new Vector3(1, 1, 1); } model.Gender = this[Key.Gender].Muscle; model.Height = this[Key.Height].Muscle; model.Waist = this[Key.Waist].Muscle; model.Head = this[Key.Head].Muscle; model.ArmThick = this[Key.ArmThick].Muscle; model.LegThick = this[Key.LegThick].Muscle; foreach (Key key in Enum.GetValues(typeof(Key))) { this[key].Done(); } }