Toggling a game objects active state

When working on a main menu i encountered this problem. i want a gameobject to be set to active when toggled when clicked toggle stays ticked and doesnt set the wind gameobject as not active

public Toggle wind;
GameObject windzone;

public void OnToggle ()
{

	if(wind == true)
	{
		wind.isOn = true;
		windzone.SetActive(true);
	}
		else
	{
		wind.isOn = false;
		windzone.SetActive(false);
	}

}

I think there is not OnToggle event for Toggle component.

There is an event called OnValueChanged for Toggle component, on bottom of it.

60704-ss-2015-12-26-at-082933.png

So, your script should look something like this:

		void HandleOnValueChanged()
		{
			// Do Whatever you want
		}