diff options
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs | 6 |
1 files changed, 2 insertions, 4 deletions
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<PlayerManager> // 角色 private CrewScript m_Crew; - // 持有的饰品 - public List<DecorationBase> decorations { get { return m_Decorations; } } - private List<DecorationBase> m_Decorations = new List<DecorationBase>(); - public void Init() { InitItems(); InitEquips(); + InitDecorations(); } public void Update() @@ -24,6 +21,7 @@ public partial class PlayerManager : Singleton<PlayerManager> UpdateItems(); UpdateEquips(); + UpdateDecorations(); } public void SetCrew(CrewScript crew) |