Example #1
0
 void OnEnable()
 {
     //	Set references
     toggle = gameObject.GetComponent <Toggle>();
     switchRectTransform = switchImage.GetComponent <RectTransform>();
     checkBoxToggler     = text.GetComponent <CheckBoxToggler>();
     rippleConfig        = gameObject.GetComponent <RippleConfig>();
 }
Example #2
0
		void OnEnable()
		{
			//	Set references
			toggle = gameObject.GetComponent<Toggle>();
			switchRectTransform = switchImage.GetComponent<RectTransform>();
			checkBoxToggler = text.GetComponent<CheckBoxToggler>();
			rippleConfig = gameObject.GetComponent<RippleConfig>();
		}
Example #3
0
 void OnEnable()
 {
     //	Set references
     toggle             = gameObject.GetComponent <Toggle>();
     checkRectTransform = checkImage.GetComponent <RectTransform>();
     frameCanvasGroup   = frameImage.GetComponent <CanvasGroup>();
     checkBoxToggler    = text.GetComponent <CheckBoxToggler>();
     rippleConfig       = gameObject.GetComponent <RippleConfig>();
 }
Example #4
0
 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>();
 }
Example #5
0
		void OnEnable()
		{
			//	Set references
			toggle = gameObject.GetComponent<Toggle>();
			checkRectTransform = checkImage.GetComponent<RectTransform>();
			frameCanvasGroup = frameImage.GetComponent<CanvasGroup>();
			checkBoxToggler = text.GetComponent<CheckBoxToggler>();
			rippleConfig = gameObject.GetComponent<RippleConfig>();
		}
Example #6
0
		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;
		}
Example #7
0
 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;
 }
Example #8
0
 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>();
 }