This commit is contained in:
Mister_Nebula 2020-08-23 12:49:43 +01:00
parent 53be8ae98b
commit ed38e19266

View File

@ -28,6 +28,7 @@ namespace QSB.DeathSync
private HatchController _hatchController;
private ShipCockpitController _cockpitController;
private PlayerSpacesuit _spaceSuit;
private bool _isSetUp;
private void Awake()
{
@ -49,6 +50,11 @@ namespace QSB.DeathSync
public void Init()
{
if (_isSetUp)
{
return;
}
_isSetUp = true;
var playerTransform = Locator.GetPlayerTransform();
_playerResources = playerTransform.GetComponent<PlayerResources>();
_spaceSuit = playerTransform.GetComponentInChildren<PlayerSpacesuit>(true);