My GUI Button is not responding!
I have placed a check in my script, and it fails the check.
Any ideas?
void DoMyWindow(int windowID)
{
//---------------------------------------------------PAUSE---------------------------------------------------------------------
if (windowID ==0)
{
}
//----------------------------------------------------TOWER SELECTION---------------------------------------------------------------
else if (windowID ==1)
{
//-----POWER SUPPLY-----
if (GUI.Button(new Rect (0,0,Screen.width *0.12f, Screen.height *0.2f),powerSupply))
{
print ("power supply");
powerSupplyOn++;
if (powerSupplyOn == 1)
{
}
else if (powerSupplyOn == 2)
{
print ("power supply spawn ready");
gameObject.GetComponent <Tower_Placement>().powerSupply = true;
powerSupplyOn = 0;
structuresOn = false;
windowRect = windowRectDisabled;
}
}