summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/Managers/PlayerManager.cs
blob: 8bd1dd0ebe8b31bd7550ca6c22950566df134f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

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();
	}

	public void Update()
	{
		CheckInput();

		UpdateItems();
		UpdateEquips();
	}

	public void SetCrew(CrewScript crew)
	{
		m_Crew = crew;
	}

}