Why my toggle group event called 2 times on click of Toggle button?
I have created just test scene for this purpose and getting same result.
Here is my inspector image :
Following is Toggle component image :
I have written following code in script :
public void OnTankTypeToggleClick (int tankType)
{
Debug.Log ("click method called : " + tankType);
}
Above debug statement is print on console two times. By this mean, click method is called two time.
I want to call click method just single time. So please give some awesome suggestion to me.