void OnEnable() { // Set references toggle = gameObject.GetComponent <Toggle>(); switchRectTransform = switchImage.GetComponent <RectTransform>(); checkBoxToggler = text.GetComponent <CheckBoxToggler>(); rippleConfig = gameObject.GetComponent <RippleConfig>(); }
void OnEnable() { // Set references toggle = gameObject.GetComponent<Toggle>(); switchRectTransform = switchImage.GetComponent<RectTransform>(); checkBoxToggler = text.GetComponent<CheckBoxToggler>(); rippleConfig = gameObject.GetComponent<RippleConfig>(); }
void OnEnable() { // Set references toggle = gameObject.GetComponent <Toggle>(); checkRectTransform = checkImage.GetComponent <RectTransform>(); frameCanvasGroup = frameImage.GetComponent <CanvasGroup>(); checkBoxToggler = text.GetComponent <CheckBoxToggler>(); rippleConfig = gameObject.GetComponent <RippleConfig>(); }
void OnEnable() { // Set references toggle = gameObject.GetComponent <Toggle>(); // Debug.LogWarning ("Setting TOGGLE ref: "+(toggle==null?"NULL":"NOT NULL")); switchRectTransform = switchImage.GetComponent <RectTransform>(); checkBoxToggler = text.GetComponent <CheckBoxToggler>(); rippleConfig = gameObject.GetComponent <RippleConfig>(); }
void OnEnable() { // Set references toggle = gameObject.GetComponent<Toggle>(); checkRectTransform = checkImage.GetComponent<RectTransform>(); frameCanvasGroup = frameImage.GetComponent<CanvasGroup>(); checkBoxToggler = text.GetComponent<CheckBoxToggler>(); rippleConfig = gameObject.GetComponent<RippleConfig>(); }
public void OnEnable () { // Set references toggle = gameObject.GetComponent<Toggle>(); toggleGroup = gameObject.GetComponent<Transform>().parent.parent.GetComponent<ToggleGroup>(); dotRectTransform = dotImage.GetComponent<RectTransform>(); checkBoxToggler = text.GetComponent<CheckBoxToggler>(); rippleConfig = gameObject.GetComponent<RippleConfig>(); toggle.group = toggleGroup; }
public void OnEnable() { // Set references toggle = gameObject.GetComponent <Toggle>(); toggleGroup = gameObject.GetComponent <Transform>().parent.parent.GetComponent <ToggleGroup>(); dotRectTransform = dotImage.GetComponent <RectTransform>(); checkBoxToggler = text.GetComponent <CheckBoxToggler>(); rippleConfig = gameObject.GetComponent <RippleConfig>(); toggle.group = toggleGroup; }
void OnEnable() { // Set references toggle = gameObject.GetComponent <Toggle>(); checkRectTransform = checkImage.GetComponent <RectTransform>(); frameCanvasGroup = frameImage.GetComponent <CanvasGroup>(); if (text == null) { text = gameObject.transform.parent.Find("Text").GetComponent <Text>(); } checkBoxToggler = text.GetComponent <CheckBoxToggler>(); rippleConfig = gameObject.GetComponent <RippleConfig>(); }