【发布时间】:2022-08-05 13:18:59
【问题描述】:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class wastafel : MonoBehaviour
{
public Text ctText;
public static int iscucitangan;//scoring
public int handwash;
void update()
{
handwash = iscucitangan;
ctText.text = \"Sudah cuci tangan :\" + handwash;
}
}
我尝试了这个脚本来显示我统一制作的评分系统(我使用这个视频作为参考:https://www.youtube.com/watch?v=YKeXyaB41EA)。我将此代码应用于程序like this 中的文本UI 对象。 This is the CT text object。但是当我按下播放键时,它出现了like this, no change at all。 This is my text setting。有什么我想念的吗?