123456789101112131415161718 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class ChangeButtonText : MonoBehaviour
- {
- public Text text;
- private int day = 2;
- public void ChangeText()
- {
- text.text = "Submit Day " + day;
- day++;
- if (day > 3)
- day = 1;
- }
- }
|