mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix locator by waiting
This commit is contained in:
parent
575b54a168
commit
99868b94a8
@ -344,7 +344,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
// fix campfires
|
// fix campfires
|
||||||
if (component is InteractVolume interactVolume)
|
if (component is InteractVolume interactVolume)
|
||||||
{
|
{
|
||||||
interactVolume._playerCam = Locator.GetPlayerCamera();
|
Delay.FireOnNextUpdate(() => interactVolume._playerCam = Locator.GetPlayerCamera());
|
||||||
}
|
}
|
||||||
if (component is PlayerAttachPoint playerAttachPoint)
|
if (component is PlayerAttachPoint playerAttachPoint)
|
||||||
{
|
{
|
||||||
@ -352,7 +352,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
playerAttachPoint._playerController = playerBody.GetComponent<PlayerCharacterController>();
|
playerAttachPoint._playerController = playerBody.GetComponent<PlayerCharacterController>();
|
||||||
playerAttachPoint._playerOWRigidbody = playerBody.GetComponent<OWRigidbody>();
|
playerAttachPoint._playerOWRigidbody = playerBody.GetComponent<OWRigidbody>();
|
||||||
playerAttachPoint._playerTransform = playerBody.transform;
|
playerAttachPoint._playerTransform = playerBody.transform;
|
||||||
playerAttachPoint._fpsCamController = Locator.GetPlayerCameraController();
|
Delay.FireOnNextUpdate(() => playerAttachPoint._fpsCamController = Locator.GetPlayerCameraController());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (component is NomaiInterfaceOrb orb)
|
if (component is NomaiInterfaceOrb orb)
|
||||||
@ -365,7 +365,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
torchItem.enabled = true;
|
torchItem.enabled = true;
|
||||||
torchItem.mindProjectorTrigger.enabled = true;
|
torchItem.mindProjectorTrigger.enabled = true;
|
||||||
torchItem.mindSlideProjector._mindProjectorImageEffect = Locator.GetPlayerCamera().GetComponent<MindProjectorImageEffect>();
|
Delay.FireOnNextUpdate(() => torchItem.mindSlideProjector._mindProjectorImageEffect = Locator.GetPlayerCamera().GetComponent<MindProjectorImageEffect>());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (component is Animator animator) animator.enabled = true;
|
if (component is Animator animator) animator.enabled = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user