mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 10:09:31 +00:00
fix tractor beam
This commit is contained in:
parent
fa033b3eaa
commit
0c49e499b3
@ -30,6 +30,7 @@ namespace QSB.DeathSync
|
||||
private HatchController _hatchController;
|
||||
private ShipCockpitController _cockpitController;
|
||||
private PlayerSpacesuit _spaceSuit;
|
||||
private ShipTractorBeamSwitch _shipTractorBeam;
|
||||
|
||||
public void Awake() => Instance = this;
|
||||
|
||||
@ -40,6 +41,7 @@ namespace QSB.DeathSync
|
||||
_playerResources = playerTransform.GetComponent<PlayerResources>();
|
||||
_spaceSuit = Locator.GetPlayerSuit();
|
||||
_playerSpawner = FindObjectOfType<PlayerSpawner>();
|
||||
_shipTractorBeam = FindObjectOfType<ShipTractorBeamSwitch>();
|
||||
_fluidDetector = Locator.GetPlayerCamera().GetComponentInChildren<FluidDetector>();
|
||||
|
||||
_playerSpawnPoint = GetSpawnPoint();
|
||||
@ -122,6 +124,7 @@ namespace QSB.DeathSync
|
||||
_cockpitController.Invoke("CompleteExitFlightConsole");
|
||||
_hatchController.SetValue("_isPlayerInShip", false);
|
||||
_hatchController.Invoke("OpenHatch");
|
||||
_shipTractorBeam.ActivateTractorBeam();
|
||||
}
|
||||
|
||||
private SpawnPoint GetSpawnPoint(bool isShip = false)
|
||||
|
Loading…
Reference in New Issue
Block a user