From 9c71a751ba5da751d12edfbd66ca2623120b16f7 Mon Sep 17 00:00:00 2001 From: liuliang <597380732@qq.com> Date: Fri, 27 Dec 2024 23:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=88=BF=E9=97=B4=20=20yhj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Res/gsj/scripts/Drill.cs | 12 ++- xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs | 8 +- .../Assets/Res/gsj/scripts/RoomManager.cs | 6 +- xiaofang/Assets/Res/gsj/scripts/Status.cs | 21 ++-- .../Assets/Resources/gsjUI/GameObject.prefab | 2 +- xiaofang/Assets/Scenes/Tmap 1.unity | 95 +++++++++++++++++++ xiaofang/Assets/Scenes/yhj.unity | 40 ++++---- xiaofang/Assets/Script/PlayerTask.cs | 2 +- xiaofang/Assets/Script/UI/ZZZZZZ/Test.cs | 2 +- .../Assets/Script/UI/ZZZZZZ/ZZUIManager.cs | 2 +- .../Assets/Script/loginScripts/LoginPanel.cs | 2 + 11 files changed, 161 insertions(+), 31 deletions(-) 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