src/core/AssetManager.js
/**
	* Loads all external animations from the backend.
	*
	* @return {AssetManager} A reference to this asset manager.
	*/
Loads all external animations from the backend.
@return {AssetManager} A reference to this asset manager.
Loads all external animations from the backend . @return { AssetManager } A reference to this asset manager .
_loadAnimations() {
		const animationLoader = this.animationLoader;
		animationLoader.load( './animations/player.json', ( clips ) => {
			for ( const clip of clips ) {
				this.animations.set( clip.name, clip );
			}
		} );
		animationLoader.load( './animations/blaster.json', ( clips ) => {
			for ( const clip of clips ) {
				this.animations.set( clip.name, clip );
			}
		} );
		animationLoader.load( './animations/shotgun.json', ( clips ) => {
			for ( const clip of clips ) {
				this.animations.set( clip.name, clip );
			}
		} );
		animationLoader.load( './animations/assaultRifle.json', ( clips ) => {
			for ( const clip of clips ) {
				this.animations.set( clip.name, clip );
			}
		} );
		return this;
	}
_loadAnimations ( ) { const animationLoader = this . animationLoader ; animationLoader . load ( './animations/player.json' , ( clips ) => { for ( const clip of clips ) { this . animations . set ( clip . name , clip ) ; } } ) ; animationLoader . load ( './animations/blaster.json' , ( clips ) => { for ( const clip of clips ) { this . animations . set ( clip . name , clip ) ; } } ) ; animationLoader . load ( './animations/shotgun.json' , ( clips ) => { for ( const clip of clips ) { this . animations . set ( clip . name , clip ) ; } } ) ; animationLoader . load ( './animations/assaultRifle.json' , ( clips ) => { for ( const clip of clips ) { this . animations . set ( clip . name , clip ) ; } } ) ; return this ; }
Loads all external animations from the backend.
Loads all external animations from the backend .
// player // blaster // shotgun // assault rifle