diff --git a/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/Button_click_count.cs b/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/Button_click_count.cs index 7c8d3ecf..e8c30ed1 100644 --- a/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/Button_click_count.cs +++ b/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/Button_click_count.cs @@ -4,17 +4,20 @@ using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; +using System; public class Button_click_count : MonoBehaviour { public string[] 关闭物体; public string[] 开启物体; - public string[] 触发方法; + // public string[] 触发方法; - - [SerializeField] - private UnityEvent events; + /// + /// 按钮加载以后控制物体开启关闭的方法 + /// + //[SerializeField] + // private UnityEvent events; // Start is called before the first frame update void Start() { @@ -29,18 +32,19 @@ public class Button_click_count : MonoBehaviour } - public void Fangfa() { - - - - - - - + public void Fangfa() { + + + + + + + + } public void onclick() { - events?.Invoke(); + //events?.Invoke(); GameObject[] gameObjects = Resources.FindObjectsOfTypeAll(); diff --git a/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/ToolsReceive_UICount.cs b/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/ToolsReceive_UICount.cs new file mode 100644 index 00000000..568cee2e --- /dev/null +++ b/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/ToolsReceive_UICount.cs @@ -0,0 +1,22 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class ToolsReceive_UICount : MonoBehaviour +{ + public GameObject toolgo; + + + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/ToolsReceive_UICount.cs.meta b/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/ToolsReceive_UICount.cs.meta new file mode 100644 index 00000000..8ab7f6de --- /dev/null +++ b/Electrical_inspectionCompetitionSystem/Assets/Script/UGUI/ToolsReceive_UICount.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1836d12b844205b4b95024b663c51bfb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: