using UnityEngine;
using System.Collections;
public class Click : MonoBehaviour {
public UnityEngine.UI.Text massDisplay;
public int mass = 0;
public int massperclick = 1;
void update() {
massDisplay.text = "Mass: " + mass;
}
public void Clicked() {
mass += massperclick;
}
}
So basically, I’m making an incremental game with an original theme that’s coming later. I’m following a tutorial on youtube, and my button does nothing. I’ve sat staring at my code, looked up other users’ posts, etc.
Some help would be great, thanks in advance!