示例#1
0
        public void SetAvatarMood(Moods mood)
        {
            FaceAvatarComponent currentFace = userData.user.Avatar.Face;

            FaceAvatarComponent tempFace = (FaceAvatarComponent)GetFaceSetById(currentFace.setId).Where(x => x.mood == mood);

            userData.user.Avatar.Face = tempFace;
            userData.user.Avatar.mood = tempFace.mood;
        }
示例#2
0
 /// <summary>
 /// Set face in current User
 /// </summary>
 /// <param name="face"></param>
 public void SetUserFace(FaceAvatarComponent face)
 {
     userData.user.Avatar.Face = face;
     userData.user.Avatar.mood = face.mood;
 }