In the PlayerLocal class, the call to instantiate a new AvatarController is deeply nested into a loader callback. as seen in the picture bellow.
Task:
Move the loader and the loading logic inside the AvatarController. The constructor for the AvatarController should only require the animationURL, the avatarURL and the scene.
In the
PlayerLocal
class, the call to instantiate a newAvatarController
is deeply nested into a loader callback. as seen in the picture bellow.Task: Move the loader and the loading logic inside the
AvatarController
. The constructor for theAvatarController
should only require theanimationURL
, theavatarURL
and thescene
.