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"); }
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"); }
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"); }
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); }
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); }
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); }