Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
chg: Arrow function to normal function to match the tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
heysokam committed Mar 7, 2024
1 parent 6c10c8e commit 5e926c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hello1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { GeometryTypeEnum } from '@etherealengine/engine/src/scene/constants/Geo
let initialized = false // Track whether our code was already run or not

// Our new function
const hello = () => {
function hello() {
if (initialized) return
initialized = true

Expand All @@ -28,4 +28,4 @@ export const HelloWorldSystem = ECS.defineSystem({
uuid: 'helloworld.system',
execute: hello,
insert: { after: PhysicsSystem }
})
})

0 comments on commit 5e926c7

Please sign in to comment.