Esempio n. 1
0
    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>();
    }
Esempio n. 2
0
        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;
        }