Hey all,
I’m starting a new project and I’m trying to create a date function where every seconds adds another day. So far, my code is:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class date : MonoBehaviour {
public int day;
void dayAdd () {
day++;
}
void Start () {
InvokeRepeating ("dayAdd", 0f, 1.0f);
}
}
Now I’m trying to show this int value to a UI. I haven’t found any method that particularly works for me, so I would love some help!
Thanks!