Example #1
0
        public static void CustomControl_Initialize_HeightPrefix(CustomControl __instance, byte _sex)
        {
            if (_sex != 0)
            {
                return;
            }

            var comp = __instance.GetComponentInChildren <CvsB_ShapeWhole>();

            if (comp == null)
            {
                return;
            }

            var set = Traverse.Create(comp).Field("ssHeight").GetValue <CustomSliderSet>();

            if (set == null)
            {
                return;
            }

            set.gameObject.SetActive(true);
        }