Skip to content

Commit 80520f1

Browse files
authored
Refactor entity rotation script: renamed class from EntityRotator to Rotator and updated scriptName property. (#7676)
1 parent 6710d78 commit 80520f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/framework/script/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import { SCRIPT_INITIALIZE, SCRIPT_POST_INITIALIZE } from './constants.js';
2727
* Below is a simple example of a script that rotates an entity every frame.
2828
* @example
2929
* ```javascript
30-
* class EntityRotator extends Script {
31-
* static scriptName = 'entityRotator';
30+
* export class Rotator extends Script {
31+
* static scriptName = 'rotator';
3232
*
3333
* update(dt) {
3434
* this.entity.rotateLocal(0, 1, 0);

0 commit comments

Comments
 (0)