blob: 9bb3f879d745d51c3e184a85b099beebecba1805 (
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
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public partial class PlayerManager : Singleton<PlayerManager>
{
// ½اة«
private CrewScript m_Crew;
public void Init()
{
InitProps();
InitWeapons();
InitItems();
}
public void Update()
{
CheckInput();
UpdateProps();
UpdateWeapons();
UpdateItems();
}
public void SetCrew(CrewScript crew)
{
m_Crew = crew;
m_Weapons.ForEach(e => e.OnInitialize(crew.gameObject));
}
}
|