Update DebugActions.cs

This commit is contained in:
Mister_Nebula 2020-12-08 09:31:29 +00:00
parent 016c983065
commit f0bad7f16a

View File

@ -1,4 +1,5 @@
using UnityEngine;
using OWML.ModHelper.Events;
using UnityEngine;
namespace QSB.Utility
{
@ -18,6 +19,9 @@ namespace QSB.Utility
var warpCore = GameObject.Find("Prefab_NOM_WarpCoreVessel").GetComponent<WarpCoreItem>();
var socket = GameObject.Find("Interactibles_VesselBridge").GetComponentInChildren<WarpCoreSocket>();
socket.PlaceIntoSocket(warpCore);
var bridgeVolume = FindObjectOfType<VesselWarpController>().GetValue<OWTriggerVolume>("_bridgeVolume");
bridgeVolume.AddObjectToVolume(Locator.GetPlayerDetector());
bridgeVolume.AddObjectToVolume(Locator.GetPlayerCameraDetector());
}
private void Update()