예제 #1
0
        private void OnEnable()
        {
            button = serializedObject.targetObject as KGUI_Button;

            if (ButtonType == null)
            {
                ButtonType = new KGUIButtonTypeEditor();
            }

            if (ButtonEvent == null)
            {
                ButtonEvent = new KGUIButtonEventEditor();
            }

            if (ButtonAudio == null)
            {
                ButtonAudio = new KGUIButtonAudioEditor();
            }


            ButtonType.OnInstantiation(serializedObject);
            ButtonEvent.OnInstantiation(serializedObject);
            ButtonAudio.OnInstantiation(serializedObject);

            onGroupReset = serializedObject.FindProperty("onGroupReset");

            buttonGroup = serializedObject.FindProperty("buttonGroup");
        }
예제 #2
0
        private void OnEnable()
        {
            toggle = serializedObject.targetObject as KGUI_Toggle;

            if (buttonAudio == null)
            {
                buttonAudio = new KGUIButtonAudioEditor();
            }

            buttonAudio.OnInstantiation(serializedObject);

            OnValueChanged = serializedObject.FindProperty("OnValueChanged");

            spriteRenderer = serializedObject.FindProperty("spriteRenderer");
            image          = serializedObject.FindProperty("image");

            onNormalSprite  = serializedObject.FindProperty("onNormalSprite");
            offNormalSprite = serializedObject.FindProperty("offNormalSprite");

            onEnterSprite  = serializedObject.FindProperty("onEnterSprite");
            offEnterSprite = serializedObject.FindProperty("offEnterSprite");

            onNormalObject  = serializedObject.FindProperty("onNormalObject");
            offNormalObject = serializedObject.FindProperty("offNormalObject");

            onEnterObject  = serializedObject.FindProperty("onEnterObject");
            offEnterObject = serializedObject.FindProperty("offEnterObject");
        }
예제 #3
0
        private void OnEnable()
        {
            dropdown = serializedObject.targetObject as KGUI_Dropdown;

            if (buttonType == null)
            {
                buttonType = new KGUIButtonTypeEditor();
            }

            if (buttonAudio == null)
            {
                buttonAudio = new KGUIButtonAudioEditor();
            }

            buttonType.OnInstantiation(serializedObject);
            buttonAudio.OnInstantiation(serializedObject);

            Names = serializedObject.FindProperty("Names");

            ScrollView = serializedObject.FindProperty("scrollView");

            Template = serializedObject.FindProperty("Template");

            textName     = serializedObject.FindProperty("textName");
            gridLayout   = serializedObject.FindProperty("gridLayout");
            dropdownItem = serializedObject.FindProperty("dropdownItem");
        }
예제 #4
0
        private void OnEnable()
        {
            dropdownItem = serializedObject.targetObject as KGUI_DropdownItem;
            if (buttonType == null)
            {
                buttonType = new KGUIButtonTypeEditor();
            }

            if (buttonAudio == null)
            {
                buttonAudio = new KGUIButtonAudioEditor();
            }

            buttonType.OnInstantiation(serializedObject);
            buttonAudio.OnInstantiation(serializedObject);
        }
예제 #5
0
        private void OnEnable()
        {
            item = serializedObject.targetObject as KGUI_BackpackItem;

            if (buttonType == null)
            {
                buttonType = new KGUIButtonTypeEditor();
            }
            if (buttonEvent == null)
            {
                buttonEvent = new KGUIButtonEventEditor();
            }
            if (buttonAudio == null)
            {
                buttonAudio = new KGUIButtonAudioEditor();
            }

            buttonType.OnInstantiation(serializedObject);
            buttonEvent.OnInstantiation(serializedObject);
            buttonAudio.OnInstantiation(serializedObject);
        }
예제 #6
0
        private void OnEnable()
        {
            button = serializedObject.targetObject as KGUI_ButtonCustom;

            if (ButtonType == null)
            {
                ButtonType = new KGUIButtonTypeEditor();
            }
            if (ButtonEvent == null)
            {
                ButtonEvent = new KGUIButtonEventEditor();
            }

            if (ButtonAudio == null)
            {
                ButtonAudio = new KGUIButtonAudioEditor();
            }

            ButtonType.OnInstantiation(serializedObject);
            ButtonEvent.OnInstantiation(serializedObject);
            ButtonAudio.OnInstantiation(serializedObject);
        }