From 4d30d268b943828ea56c1e8296859e27265ed0af Mon Sep 17 00:00:00 2001 From: Mark Lundin Date: Fri, 16 May 2025 15:19:29 +0100 Subject: [PATCH] Refactor entity rotation script: renamed class from EntityRotator to Rotator and updated scriptName property. --- src/framework/script/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/script/script.js b/src/framework/script/script.js index 1f45faab531..5538f19c3b6 100644 --- a/src/framework/script/script.js +++ b/src/framework/script/script.js @@ -27,8 +27,8 @@ import { SCRIPT_INITIALIZE, SCRIPT_POST_INITIALIZE } from './constants.js'; * Below is a simple example of a script that rotates an entity every frame. * @example * ```javascript - * class EntityRotator extends Script { - * static scriptName = 'entityRotator'; + * export class Rotator extends Script { + * static scriptName = 'rotator'; * * update(dt) { * this.entity.rotateLocal(0, 1, 0);