go into away if the application starts in HMD mode but it's not mounted

This commit is contained in:
Brad Hefta-Gaub 2016-09-26 17:29:37 -07:00
parent 73e3e993fb
commit f7228993a5

View file

@ -308,4 +308,10 @@ Script.scriptEnding.connect(function () {
Controller.keyPressEvent.disconnect(maybeGoActive);
});
if (HMD.active && !HMD.mounted) {
print("Starting script, while HMD is active and not mounted...");
goAway();
}
}()); // END LOCAL_SCOPE