Author Topic: [Script]There's a bug in 'UIToggledObjects'  (Read 2207 times)

nugao

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
[Script]There's a bug in 'UIToggledObjects'
« 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.  

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Script]There's a bug in 'UIToggledObjects'
« Reply #1 on: September 22, 2013, 03:22:51 AM »
Thanks! I will fix it.