From 6fe249033e91732d8fc71d80f59b86de6769f08b Mon Sep 17 00:00:00 2001 From: min Date: Tue, 9 Jun 2026 12:56:20 +0300 Subject: [PATCH] =?UTF-8?q?debug:=20=D0=BB=D0=BE=D0=B3=20=D0=B2=20=5Fspawn?= =?UTF-8?q?Particles=20=D0=B8=20Lua=20onCommand=20=D0=B4=D0=BB=D1=8F=20sce?= =?UTF-8?q?ne.particles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/engine/GameRuntime.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/editor/engine/GameRuntime.js b/src/editor/engine/GameRuntime.js index 90cca57..07a2904 100644 --- a/src/editor/engine/GameRuntime.js +++ b/src/editor/engine/GameRuntime.js @@ -326,6 +326,10 @@ export class GameRuntime { } } catch (_) {} } 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); } }); @@ -4868,6 +4872,8 @@ export class GameRuntime { * Делегирует в BabylonScene._spawnParticleEffect, который знает о Babylon. */ _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; try { this.scene3d._spawnParticleEffect(payload);