using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace QSB { class DebugActions : MonoBehaviour { void GoToVessel() { var spawnPoint = GameObject.Find("Spawn_Vessel").GetComponent(); OWRigidbody playerBody = Locator.GetPlayerBody(); playerBody.WarpToPositionRotation(spawnPoint.transform.position, spawnPoint.transform.rotation); playerBody.SetVelocity(spawnPoint.GetPointVelocity()); } void InsertWarpCore() { var warpCore = GameObject.Find("Prefab_NOM_WarpCoreVessel").GetComponent(); var socket = GameObject.Find("Interactibles_VesselBridge").GetComponentInChildren(); socket.PlaceIntoSocket(warpCore); GetComponent().SetPillarRaised(true, true); } void Update() { if (!QSB.DebugMode) { return; } if (Input.GetKeyDown(KeyCode.Keypad1)) { GoToVessel(); } if (Input.GetKeyDown(KeyCode.Keypad2)) { InsertWarpCore(); } } } }