-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added unit test (activated with alt+u) and new simplified internal wa…
…rp function for testing
- Loading branch information
1 parent
650d40c
commit ae901ab
Showing
4 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using KerbalFuture.Superluminal.SpaceFolder; | ||
using KerbalFuture.Utils; | ||
using UnityEngine; | ||
|
||
namespace KerbalFuture.UnitTests | ||
{ | ||
[KSPAddon(KSPAddon.Startup.Flight, false)] //starts every time player enters flight scene | ||
class UnitTests : MonoBehaviour | ||
{ | ||
public static SpaceFolderDriveVesselModule vesselModule; | ||
public void Update() | ||
{ | ||
if(Input.GetKey(KeyCode.U) && (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt))) | ||
{ | ||
vesselModule.WarpVessel(new Vector3d(40000, 2100000, 500000000)); | ||
} | ||
} | ||
} | ||
} |