Hi,
I am trying to code a script that will allow me to add 1 subscriber per every
click of the Upload button, here is a picture of what i’m talking about.
Here’s my script so far:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Button : MonoBehaviour {
int AddSubs = 0;
public void AddToSubs(){
AddSubs += 1;
GetComponent().text = “Subscribers:” + AddSubs;
}
}
Please help!