blob: ce27739817365eb0909741ba690457291b2f2ba7 (
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();
InitDecorations();
}
public void Update()
{
CheckInput();
UpdateProps();
UpdateWeapons();
UpdateDecorations();
}
public void SetCrew(CrewScript crew)
{
m_Crew = crew;
m_Weapons.ForEach(e => e.OnInitialize(crew.gameObject));
}
}
|