From 48cce250a683024009bdf35a10c6710c615022d6 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Apr 2022 15:20:21 +0800 Subject: *ui --- .../Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs | 16 ++++++++++++++++ .../UI/Panel/PanelTopStuffBar/UIStateSection.cs.meta | 11 +++++++++++ 2 files changed, 27 insertions(+) create mode 100644 SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs create mode 100644 SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs.meta (limited to 'SurvivalTest/Assets/Scripts/UI/Panel') diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs b/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs new file mode 100644 index 0000000..991ec3a --- /dev/null +++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs @@ -0,0 +1,16 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class UIStateSection : MonoBehaviour +{ + public GameObject m_AutoFire; + public GameObject m_LockAim; + + private void Update() + { + m_AutoFire.SetActive(PlayerManager.Instance.autoFire); + m_LockAim.SetActive(PlayerManager.Instance.lockAim); + } + +} \ No newline at end of file diff --git a/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs.meta b/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs.meta new file mode 100644 index 0000000..b29afd9 --- /dev/null +++ b/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 718f0f01a21e1e546b984ad0739fc76d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: -- cgit v1.1-26-g67d0