File Author Date Description import * as Sein from 'seinjs' ; import 'seinjs-audio' ; import { createDefaultCamera , createDefaultLights } from '../../utils' ; export default class MainScript extends Sein . LevelScriptActor { public onCreate ( ) { const game = this . getGame ( ) ; game . resource . register ( 'Audio' , Sein . Audio . Loader ) ; game . addActor ( 'audioSystem' , Sein . Audio . SystemActor ) ; const camera = createDefaultCamera ( game , { target : new Sein . Vector3 ( .2 , 0 , 0 ) , position : new Sein . Vector3 ( .2 , 0 , 1 ) } ) ; camera . addComponent ( 'listener' , Sein . Audio . ListenerComponent ) ; createDefaultLights ( game ) ; game . resource . load ( { type : 'GlTF' , name : 'bird.glb' , url : getStaticAssetUrl ( '/assets/models/bird/bird.glb' ) } ) . then ( result => { console . log ( result ) ; game . resource . instantiate < 'GlTF' > ( 'bird.glb' ) . forEach ( actor => { actor . animator . play ( null , Infinity ) ; } ) ; } ) ; } }