()
| 220 | } |
| 221 | |
| 222 | load () { |
| 223 | var self = this; |
| 224 | |
| 225 | if (this.hasLoaded || !this.parentEl) { return; } |
| 226 | |
| 227 | super.load.call(this, function entityLoadCallback () { |
| 228 | // Check if entity was detached while it was waiting to load. |
| 229 | if (!self.parentEl) { return; } |
| 230 | |
| 231 | self.updateComponents(); |
| 232 | if (self.isScene || self.parentEl.isPlaying) { self.play(); } |
| 233 | }); |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Remove child entity. |
no test coverage detected