public unsafe void SetCharacterHeight(CharacterHeight value) { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) if (m_height != value) { float height = value.GetHeight(); Vector3 localPosition = m_adjustableHeightContainer.get_localPosition(); localPosition.y = height / ((IntPtr)(void *)this.get_transform().get_localScale()).y; m_adjustableHeightContainer.set_localPosition(localPosition); m_height = value; } }
private void SetLocalScale(float orthographicSize) { //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) int height = Screen.get_height(); float num = (float)height / (2f * orthographicSize); float num2 = 100f / num * (float)height / 1080f; this.get_transform().set_localScale(new Vector3(num2, num2, num2)); float height2 = m_height.GetHeight(); Vector3 localPosition = m_adjustableHeightContainer.get_localPosition(); localPosition.y = height2 / num2; m_adjustableHeightContainer.set_localPosition(localPosition); }