Beispiel #1
0
        protected void OnUmaAvatarDataChange(bool isInit, UmaAvatarData avatarData)
        {
            CharacterModelUMA characterModelUma = CharacterModel as CharacterModelUMA;

            if (characterModelUma == null)
            {
                return;
            }
            characterModelUma.ApplyUmaAvatar(avatarData);
        }
 protected override void OnSelectCharacter(IPlayerCharacterData playerCharacterData)
 {
     base.OnSelectCharacter(playerCharacterData);
     if (SelectedModel != null)
     {
         // Setup Uma model and customize options
         CharacterModelUMA characterModelUMA = SelectedModel as CharacterModelUMA;
         UmaModel = characterModelUMA;
         ShowUmaCharacter();
     }
 }
        protected override void OnSelectCharacter(IPlayerCharacterData playerCharacterData)
        {
            base.OnSelectCharacter(playerCharacterData);
            CharacterModelUMA characterModelUMA = SelectedModel as CharacterModelUMA;

            if (umaPanelRoot != null)
            {
                umaPanelRoot.SetActive(characterModelUMA != null);
            }
            UmaModel = characterModelUMA;
            ShowUmaCharacter();
        }
Beispiel #4
0
 protected void OnUmaAvatarDataChange(bool isInit, UmaAvatarData avatarData)
 {
     if (CharacterModel is AnimatorCharacterModelUMA)
     {
         AnimatorCharacterModelUMA animatorCharacterModelUma = CharacterModel as AnimatorCharacterModelUMA;
         if (animatorCharacterModelUma == null)
         {
             return;
         }
         animatorCharacterModelUma.ApplyUmaAvatar(avatarData);
     }
     else
     {
         CharacterModelUMA characterModelUma = CharacterModel as CharacterModelUMA;
         if (characterModelUma == null)
         {
             return;
         }
         characterModelUma.ApplyUmaAvatar(avatarData);
     }
 }