Ejemplo n.º 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");
        }
Ejemplo n.º 2
0
        private void OnEnable()
        {
            item = serializedObject.targetObject as KGUI_BackpackItem;

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


            buttonType.OnInstantiation(serializedObject);
            buttonEvent.OnInstantiation(serializedObject);
        }
        private void OnEnable()
        {
            button = serializedObject.targetObject as KGUI_ButtonObject;

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

            onGroupReset = serializedObject.FindProperty("onGroupReset");

            AudioClip = serializedObject.FindProperty("audioClip");

            BindObject = serializedObject.FindProperty("bindObject");
            Panel      = serializedObject.FindProperty("panel");
        }
        private void OnEnable()
        {
            button = serializedObject.targetObject as KGUI_ButtonCustom;

            //onClick = serializedObject.FindProperty("onClick");
            //onEnter = serializedObject.FindProperty("onEnter");
            //onExit = serializedObject.FindProperty("onExit");
            //onDown = serializedObject.FindProperty("onDown");
            //onUp = serializedObject.FindProperty("onUp");

            //onDownStay = serializedObject.FindProperty("onDownStay");

            //buttonType = serializedObject.FindProperty("buttonType");

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

            //normalSprite = serializedObject.FindProperty("normalSprite");
            //enterSprite = serializedObject.FindProperty("enterSprite");
            //pressedSprite = serializedObject.FindProperty("pressedSprite");
            //disableSprite = serializedObject.FindProperty("disableSprite");

            //normalObject = serializedObject.FindProperty("normalObject");
            //enterObject = serializedObject.FindProperty("enterObject");
            //pressedObject = serializedObject.FindProperty("pressedObject");
            //disableObject = serializedObject.FindProperty("disableObject");

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

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

            AudioClip = serializedObject.FindProperty("audioClip");
        }
Ejemplo n.º 5
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);
        }