Ejemplo n.º 1
0
    private IEnumerator Initialize(string playerId, string bodyId, string avatarCode, string haircutIdentity, string hairColor)
    {
        yield return(Await(avatarProvider.InitializeAsync(playerId)));

        playerObj = CreateBody(bodyId);

        BodyAttachment bodyAttach = playerObj.transform.Find("body_attachment").GetComponent <BodyAttachment>();

        StartCoroutine(DownloadAvatar(bodyAttach, avatarCode, haircutIdentity, hairColor));
    }
Ejemplo n.º 2
0
        private static IEnumerator InitRoutine()
        {
            yield return(avatarProvider.InitializeAsync());

            isExportEnabled          = AvatarMakerPlugin.IsProVersion();
            isMotionCaptureSupported = AvatarMakerPlugin.IsHardwareSupportedForMotionCapture();
            isInitialized            = true;
        }
Ejemplo n.º 3
0
 protected virtual AsyncRequest InitializeAvatarProviderAsync()
 {
     return(avatarProvider.InitializeAsync());
 }
 /// <summary>
 /// Initialize avatar provider
 /// </summary>
 protected virtual IEnumerator Initialize()
 {
     avatarProvider = AvatarSdkMgr.IoCContainer.Create <IAvatarProvider>();
     yield return(Await(avatarProvider.InitializeAsync()));
 }