/// <summary> /// Reset body model and smartsuit to its default values. /// </summary> private void Reset() { bodyModel = BodyModel.Default(); bodyModel.TotalHeight = Mathf.Abs(bodyModel.TotalHeight); bodyModel.HipHeight = Mathf.Abs(bodyModel.HipHeight); bodyModel.ShoulderHeight = Mathf.Abs(bodyModel.ShoulderHeight); bodyModel.HipWidth = Mathf.Abs(bodyModel.HipWidth); bodyModel.ShoulderWidth = Mathf.Abs(bodyModel.ShoulderWidth); bodyModel.ArmSpan = Mathf.Abs(bodyModel.ArmSpan); bodyModel.AnkleHeight = Mathf.Abs(bodyModel.AnkleHeight); bodyModel.FootLength = Mathf.Abs(bodyModel.FootLength); bodyModel.HeelOffset = Mathf.Abs(bodyModel.HeelOffset); smartsuit = FindObjectOfType <Smartsuit>(); bodyModelName = "Default"; bodyModelColor = new Color32(0xBC, 0xBC, 0xBC, 0xFF); }
// Start is called before the first frame update void Start() { smartsuit = FindObjectOfType <Smartsuit>(); }