Skip to content

Instantly share code, notes, and snippets.

@atakotestudios
Created May 21, 2017 19:21
Show Gist options
  • Save atakotestudios/07c71206d885179b9dead892a267272b to your computer and use it in GitHub Desktop.
Save atakotestudios/07c71206d885179b9dead892a267272b to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ChangeText : MonoBehaviour {
public Text mytext;
private int counter;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
counter++;
mytext.text = "Counter = " + counter;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment