Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: nugao on September 22, 2013, 02:57:56 AM

Title: [Script]There's a bug in 'UIToggledObjects'
Post by: nugao on September 22, 2013, 02:57:56 AM
Hello, I found a bug in UIToggledObjects.

  1. public void Toggle ()
  2. {
  3.         if (enabled)
  4.         {
  5.                 for (int i = 0; i < activate.Count; ++i)
  6.                         Set(activate[i], UIToggle.current.value);
  7.  
  8.                 for (int i = 0; i < deactivate.Count; ++i)
  9.                         Set(activate[i], !UIToggle.current.value); // this line
  10.         }
  11. }
  12.  
Title: Re: [Script]There's a bug in 'UIToggledObjects'
Post by: ArenMook on September 22, 2013, 03:22:51 AM
Thanks! I will fix it.