protected override IEnumerator SetUp() { yield return(base.SetUp()); avatarModel = new AvatarModel() { name = " test", hairColor = Color.white, eyeColor = Color.white, skinColor = Color.white, bodyShape = WearableLiterals.BodyShapes.FEMALE, wearables = new List <string>() { } }; AvatarTestHelpers.CreateTestCatalog(); var avatarShape = AvatarTestHelpers.CreateAvatarShape(scene, avatarModel); yield return(new DCL.WaitUntil(() => avatarShape.everythingIsLoaded, 20)); avatarRenderer = avatarShape.avatarRenderer; animator = avatarRenderer.animator; }
protected override IEnumerator SetUp() { yield return(SetUp_SceneController()); yield return(SetUp_CharacterController()); if (avatarShape == null) { avatarModel = new AvatarModel() { name = " test", hairColor = Color.white, eyeColor = Color.white, skinColor = Color.white, bodyShape = WearableLiterals.BodyShapes.FEMALE, wearables = new List <string>() { } }; catalog = AvatarTestHelpers.CreateTestCatalog(); avatarShape = AvatarTestHelpers.CreateAvatarShape(scene, avatarModel); yield return(new DCL.WaitUntil(() => avatarShape.everythingIsLoaded, 20)); } }