private void SetupIllustrationGroup() { typeName = IllustrationGroup.GetChild(0).GetComponentInChildren <TextMeshProUGUI>(); illusImg = IllustrationGroup.GetChild(0).GetComponentInChildren <GUIInteractableIcon>(); upgradeBtn = IllustrationGroup.GetChild(1).GetComponent <GUIInteractableIcon>(); levelBar = IllustrationGroup.GetChild(2).GetComponent <GUIProgressSlider>(); }
protected override void OnEnable() { base.OnEnable(); Owner = target as GUIProgressSlider; fillColor = Owner.FillGrap.color; colorBlock = new SerializedPropertyDrawer(serializedObject, "colorBlock"); spriteBlock = new SerializedPropertyDrawer(serializedObject, "spriteBlock"); transitionType = Owner.Slider.transition; value = Owner.Value; }