diff options
author | chai <chaifix@163.com> | 2022-04-23 13:24:05 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-23 13:24:05 +0800 |
commit | bdb737230b30e8fb9be63d95b792e8c8ba531ea0 (patch) | |
tree | 9e1fe83c65af581d6b3411bcf1b00af4bde8990a /SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs | |
parent | 747a355b8a7d273264ce1d8f1848633f8fa52c47 (diff) |
* ui staff
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs b/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs new file mode 100644 index 0000000..59593b0 --- /dev/null +++ b/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs @@ -0,0 +1,35 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public partial class PlayerManager : Singleton<PlayerManager> +{ + + // 角色 + private CrewScript m_Crew; + + // 持有的装备 + public List<EquipBase> equips { get { return m_Equips; } } + private List<EquipBase> m_Equips = new List<EquipBase>(); + + // 持有的饰品 + public List<DecorationBase> decorations { get { return m_Decorations; } } + private List<DecorationBase> m_Decorations = new List<DecorationBase>(); + + public void Init() + { + InitItems(); + + } + + public void Update() + { + UpdateItems(); + } + + public void SetCrew(CrewScript crew) + { + m_Crew = crew; + } + +}
\ No newline at end of file |