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; }
/// <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; }