diff --git a/xiaofang/Assets/Res/gsj/scripts/Drill.cs b/xiaofang/Assets/Res/gsj/scripts/Drill.cs index 43889c54..48b5a5fe 100644 --- a/xiaofang/Assets/Res/gsj/scripts/Drill.cs +++ b/xiaofang/Assets/Res/gsj/scripts/Drill.cs @@ -5,6 +5,8 @@ using UnityEngine.SceneManagement; using UnityEngine.UI; public class Drill : MonoBehaviour { + public Text username; + public Text companyName; private Button ScheduledBtn; private bool isadministrator=false; // 是否为管理员 private bool eventAdded = false; // 防止重复添加事件 @@ -17,6 +19,9 @@ public class Drill : MonoBehaviour // 记录上一次的 isadministrator 状态,用于减少重复执行逻辑 private bool lastIsAdministratorState; + + + void Start() { ScheduledBtn = transform.Find("down/ScheduledBtn").GetComponent