From 6158af99ad803d9e29096ee6f65026d5e0db0f1f Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 24 Apr 2022 15:59:07 +0800 Subject: *misc --- SurvivalTest/Assets/Scripts/Managers/BattleManager.cs | 5 +++-- SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs | 6 ++---- .../Assets/Scripts/Managers/PlayerManager_Decorations.cs | 13 +++++++++++++ .../Assets/Scripts/Managers/PlayerManager_Equips.cs | 2 +- 4 files changed, 19 insertions(+), 7 deletions(-) (limited to 'SurvivalTest/Assets/Scripts/Managers') diff --git a/SurvivalTest/Assets/Scripts/Managers/BattleManager.cs b/SurvivalTest/Assets/Scripts/Managers/BattleManager.cs index 4cdaa72..ee52548 100644 --- a/SurvivalTest/Assets/Scripts/Managers/BattleManager.cs +++ b/SurvivalTest/Assets/Scripts/Managers/BattleManager.cs @@ -7,8 +7,9 @@ public class BattleManager : Singleton public void Init() { - UIManager.Instance.OpenPanel(PanelType.PanelItemBar, null); - UIManager.Instance.OpenPanel(PanelType.PanelEquipBar, null); + UIManager.Instance.OpenPanel(PanelType.PanelTopSuffBar, null); + //UIManager.Instance.OpenPanel(PanelType.PanelItemBar, null); + //UIManager.Instance.OpenPanel(PanelType.PanelEquipBar, null); } public void Update() diff --git a/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs b/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs index 8bd1dd0..95ad08e 100644 --- a/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs +++ b/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs @@ -8,14 +8,11 @@ public partial class PlayerManager : Singleton // 角色 private CrewScript m_Crew; - // 持有的饰品 - public List decorations { get { return m_Decorations; } } - private List m_Decorations = new List(); - public void Init() { InitItems(); InitEquips(); + InitDecorations(); } public void Update() @@ -24,6 +21,7 @@ public partial class PlayerManager : Singleton UpdateItems(); UpdateEquips(); + UpdateDecorations(); } public void SetCrew(CrewScript crew) diff --git a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Decorations.cs b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Decorations.cs index ce85849..3f1669a 100644 --- a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Decorations.cs +++ b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Decorations.cs @@ -5,6 +5,19 @@ using UnityEngine; public partial class PlayerManager : Singleton { + // 当前饰品 + public List decorations { get { return m_Decorations; } } + private List m_Decorations = new List(); + void InitDecorations() + { + m_Decorations.Add(new Decoration_MystreyMask()); + m_Decorations.Add(new Decoration_PowerRing()); + } + + void UpdateDecorations() + { + + } } \ No newline at end of file diff --git a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs index 73f86ff..44197c7 100644 --- a/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs +++ b/SurvivalTest/Assets/Scripts/Managers/PlayerManager_Equips.cs @@ -24,7 +24,7 @@ public partial class PlayerManager : Singleton m_Equips.Add(new Equip_Boomerang()); m_Equips.Add(new Equip_TeslaCoil()); m_Equips.Add(new Equip_MightyGlove()); - m_Equips.Add(new Equip_MysteryMask()); + m_Equips.Add(new Equip_LightSaber()); m_AutoFire = false; -- cgit v1.1-26-g67d0