������ 14/16/20/40/44: vehicle, ����, ����������, damage floaters, ��������� #20
@ -17,6 +17,7 @@
|
|||||||
import { Color3 } from '@babylonjs/core';
|
import { Color3 } from '@babylonjs/core';
|
||||||
import { ScriptSandbox } from './ScriptSandbox';
|
import { ScriptSandbox } from './ScriptSandbox';
|
||||||
import { STORYS_addres } from '../api/API';
|
import { STORYS_addres } from '../api/API';
|
||||||
|
import { LabelManager } from './LabelManager'; // задача: scene.setLabel (require крашит в браузере)
|
||||||
|
|
||||||
export class GameRuntime {
|
export class GameRuntime {
|
||||||
constructor(scene3d) {
|
constructor(scene3d) {
|
||||||
@ -2767,7 +2768,6 @@ export class GameRuntime {
|
|||||||
if (typeof ref !== 'string') return;
|
if (typeof ref !== 'string') return;
|
||||||
// ленивое создание менеджера меток
|
// ленивое создание менеджера меток
|
||||||
if (!this.scene3d._labelManager) {
|
if (!this.scene3d._labelManager) {
|
||||||
const { LabelManager } = require('./LabelManager');
|
|
||||||
this.scene3d._labelManager = new LabelManager(this.scene3d.scene);
|
this.scene3d._labelManager = new LabelManager(this.scene3d.scene);
|
||||||
}
|
}
|
||||||
const lm = this.scene3d._labelManager;
|
const lm = this.scene3d._labelManager;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user