fixed bugs
This commit is contained in:
@@ -22,12 +22,18 @@ export class Map {
|
||||
mapObject.position.set(0, 0, 0);
|
||||
ThreeC.setShadowsStateForChildren(mapObject, true, true);
|
||||
ThreeC.addToScene(mapObject);
|
||||
this.hideReferenceHpUi(mapObject);
|
||||
|
||||
PhysicsTriggerC.init();
|
||||
this.buildPhysics(mapObject);
|
||||
InteractiveZoneC.init(mapObject);
|
||||
}
|
||||
|
||||
private static hideReferenceHpUi(mapObject: Object3D) {
|
||||
const ui = mapObject.getObjectByName("UI");
|
||||
if (ui) ui.visible = false;
|
||||
}
|
||||
|
||||
private static buildPhysics(mapObject: Object3D) {
|
||||
for (const layerName of MAP_PHYSICS_LAYERS) {
|
||||
const layer = mapObject.getObjectByName(layerName);
|
||||
|
||||
Reference in New Issue
Block a user