fix double tablets when reloading scripts

This commit is contained in:
Dante Ruiz 2017-03-08 22:21:57 +00:00
parent 31fc50b38c
commit ce105e0329

View file

@ -131,7 +131,9 @@
}
Script.scriptEnding.connect(function () {
Entities.deleteEntity(HMD.tabletID);
var tabletID = HMD.tabletID;
Entities.deleteEntity(tabletID);
Overlays.deleteOverlay(tabletID)
HMD.tabletID = null;
HMD.homeButtonID = null;
HMD.tabletScreenID = null;