Showing the changes to scripts/tutorials/entity_scripts (1 of 1 file). Show all
Unified · Split
| @@ -46,6 +46,9 @@ · 45 unmodified lines | ||
| 46 | 46 | this.lastTimeNoDriveKeys = null; |
| 47 | 47 | this.sittingDown = false; |
| 48 | 48 | |
| 49 | + // Preload the animation file | |
| 50 | + this.animation = AnimationCache.prefetch(ANIMATION_URL); | |
| 51 | + | |
| 49 | 52 | this.preload = function(entityID) { |
| 50 | 53 | this.entityID = entityID; |
| 51 | 54 | } |