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() { 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(); buttonType.OnInstantiation(serializedObject); }
private void OnEnable() { scrollBar = serializedObject.targetObject as KGUI_ScrollBar; if (buttonType == null) { buttonType = new KGUIButtonTypeEditor(); } buttonType.OnInstantiation(serializedObject); handleRect = serializedObject.FindProperty("handleRect"); OnValueChanged = serializedObject.FindProperty("OnValueChanged"); OnRelease = serializedObject.FindProperty("OnRelease"); }
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"); }
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); }