New to Unity and Design, need some help :(
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!
Thank you so much. Never coded...though now I believe that's obvious...
Answer by corriedotdev · Feb 28, 2017 at 08:58 PM
Answer to Op is Capitalizing the 'U' in Update so should be
void Update(){
}
Your answer
Follow this Question
Related Questions
Level Selector - Level Images for Brick Breaker 2 Answers
Trouble with directing launched projectiles in Unity 2D 0 Answers
Teleport 2D Character on TriggerEnter 2 Answers
Trouble with controlling the direction of projectiles with C# code 1 Answer
How to get access to other's script var with increment? 0 Answers