mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 18:51:19 +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 HatchController _hatchController;
|
||||||
private ShipCockpitController _cockpitController;
|
private ShipCockpitController _cockpitController;
|
||||||
private PlayerSpacesuit _spaceSuit;
|
private PlayerSpacesuit _spaceSuit;
|
||||||
|
private ShipTractorBeamSwitch _shipTractorBeam;
|
||||||
|
|
||||||
public void Awake() => Instance = this;
|
public void Awake() => Instance = this;
|
||||||
|
|
||||||
@ -40,6 +41,7 @@ namespace QSB.DeathSync
|
|||||||
_playerResources = playerTransform.GetComponent<PlayerResources>();
|
_playerResources = playerTransform.GetComponent<PlayerResources>();
|
||||||
_spaceSuit = Locator.GetPlayerSuit();
|
_spaceSuit = Locator.GetPlayerSuit();
|
||||||
_playerSpawner = FindObjectOfType<PlayerSpawner>();
|
_playerSpawner = FindObjectOfType<PlayerSpawner>();
|
||||||
|
_shipTractorBeam = FindObjectOfType<ShipTractorBeamSwitch>();
|
||||||
_fluidDetector = Locator.GetPlayerCamera().GetComponentInChildren<FluidDetector>();
|
_fluidDetector = Locator.GetPlayerCamera().GetComponentInChildren<FluidDetector>();
|
||||||
|
|
||||||
_playerSpawnPoint = GetSpawnPoint();
|
_playerSpawnPoint = GetSpawnPoint();
|
||||||
@ -122,6 +124,7 @@ namespace QSB.DeathSync
|
|||||||
_cockpitController.Invoke("CompleteExitFlightConsole");
|
_cockpitController.Invoke("CompleteExitFlightConsole");
|
||||||
_hatchController.SetValue("_isPlayerInShip", false);
|
_hatchController.SetValue("_isPlayerInShip", false);
|
||||||
_hatchController.Invoke("OpenHatch");
|
_hatchController.Invoke("OpenHatch");
|
||||||
|
_shipTractorBeam.ActivateTractorBeam();
|
||||||
}
|
}
|
||||||
|
|
||||||
private SpawnPoint GetSpawnPoint(bool isShip = false)
|
private SpawnPoint GetSpawnPoint(bool isShip = false)
|
||||||
|
Loading…
Reference in New Issue
Block a user