IEnumerator ChangeVirtualPlayerShow(OtherPlayer player, MsgData_sSceneObjectEnterVirtualPlayer hes) { yield return(null); if (player != null) { player.ChangeWing(GetWingModelID(0, hes.Wing, hes.Job)); } else { yield break; } yield return(null); if (player != null) { player.FuckHorse(hes.WuHunID); } else { yield break; } yield return(null); if (player != null) { player.ChangeWeapon(GetWeaponModelID(hes.FashionWeapon, hes.ShenBing, hes.Weapon, hes.Job)); } else { yield break; } yield return(null); if (player != null) { player.ShowMagicKey(hes.MagicKey); player.ShowMagicKeyByStar(hes.MagicKeyStar); } else { yield break; } yield return(null); if (player != null) { player.ChangeZhenFa(hes.ZhenfaId); } else { yield break; } }
/// <summary> /// 逐步改变玩家外观,如果改变过程中玩家被消耗则停止 /// </summary> IEnumerator ChangeOtherPlayerShow(OtherPlayer player, MsgData_sSceneObjectEnterHuman hes) { yield return(null); if (player != null) { player.ChangeWing(GetWingModelID(hes.FashionState == 0 ? hes.FashionWing : 0, hes.Wing, hes.Prof)); } else { yield break; } yield return(null); if (player != null) { player.FuckHorse(hes.Ride); } else { yield break; } yield return(null); if (player != null) { player.ChangeWeapon(GetWeaponModelID(hes.FashionState == 0 ? hes.FashionWeapon : 0, hes.ShenBin, hes.Weapon, hes.Prof)); } else { yield break; } yield return(null); if (player != null) { player.ShowMagicKey(hes.MagicKey); player.ShowMagicKeyByStar(hes.MagicKeyStar); } else { yield break; } yield return(null); if (player != null) { player.ChangeZhenFa(hes.ZhenfaId); } else { yield break; } }