feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39
@ -326,6 +326,10 @@ export class GameRuntime {
|
|||||||
}
|
}
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
} else {
|
} else {
|
||||||
|
if (cmd === 'scene.particles' || cmd === 'ui.showText') {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.warn('[Lua onCommand]', cmd, JSON.stringify(payload));
|
||||||
|
}
|
||||||
this._handleCommand(null, cmd, payload);
|
this._handleCommand(null, cmd, payload);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -4868,6 +4872,8 @@ export class GameRuntime {
|
|||||||
* Делегирует в BabylonScene._spawnParticleEffect, который знает о Babylon.
|
* Делегирует в BabylonScene._spawnParticleEffect, который знает о Babylon.
|
||||||
*/
|
*/
|
||||||
_spawnParticles(payload) {
|
_spawnParticles(payload) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.warn('[_spawnParticles] called with:', JSON.stringify(payload), 'scene3d=', !!this.scene3d, 'fn=', !!this.scene3d?._spawnParticleEffect);
|
||||||
if (!payload || !this.scene3d?._spawnParticleEffect) return;
|
if (!payload || !this.scene3d?._spawnParticleEffect) return;
|
||||||
try {
|
try {
|
||||||
this.scene3d._spawnParticleEffect(payload);
|
this.scene3d._spawnParticleEffect(payload);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user