11.07.2016, 18:23
You set toggle to false when it is equal to false. Do this instead:
Replace:
With:
or with:
Replace:
Код:
if(toggle == false)
Код:
if(toggle == true)
Код:
if(toggle)