Preload sitting animation

This commit is contained in:
Atlante45 2017-03-17 17:17:05 -07:00
parent 893a5b1b18
commit eab2c314d8

View file

@ -46,6 +46,9 @@
this.lastTimeNoDriveKeys = null;
this.sittingDown = false;
// Preload the animation file
this.animation = AnimationCache.prefetch(ANIMATION_URL);
this.preload = function(entityID) {
this.entityID = entityID;
}