I have 2 GUITexture in the inspector. I want to give them different roles on mouse click.
Trying to do it since 3 hours and couldn’t…
Here are my variables:
public GUITexture startToAdd;
public GUITexture startToMin;
public GUITexture exitGame;
public int givenAge;
public int givenWeight;
I want to set the givenAge to givenAge+5 by clicking on the startToAdd GUITexture in the scene.
And givenWeight to givenWeight-5 by clicking on the startToMin GUITexture in the scene.
And by clicking on exitGame GUITexture, the game exits.
I’m using C#, and couldn’t solve this. I’m a newbee programmer, and i need a help on this.
Any help would be appreciated…