summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-04-25 15:20:21 +0800
committerchai <chaifix@163.com>2022-04-25 15:20:21 +0800
commit48cce250a683024009bdf35a10c6710c615022d6 (patch)
tree919fd88099ae732eb34f546b2d9533d3f63374c9 /SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs
parentb1b0925ee2acf37639c3d211351d74e957c4d134 (diff)
*ui
Diffstat (limited to 'SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs')
-rw-r--r--SurvivalTest/Assets/Scripts/UI/Panel/PanelTopStuffBar/UIStateSection.cs16
1 files changed, 16 insertions, 0 deletions
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