Hello Guys!
-
Sorry for my English! (germanboy)
-
Im new here and i have so many Idears for games
-
I’ve started and Clicker but my Problem is.
I want an Sprite like a "Block " that u can Tap and earn Money for that.
How can do this? i have this code :
public class Click : MonoBehaviour {
public UnityEngine.UI.Text goldDisplay;
public int gold = 0;
public int goldperclick = 1;
void Update(){
goldDisplay.text = "Gold: " + gold;
}
public void Clicked () {
gold += goldperclick;
}
}
But How i can Connect the Value of gold i have and the “button” ?
Tahnks x) Sorry again for my bad english.
And i know there are many tutorials but i dont understand where i can solve this problem with this x)