IEnumerator ChangePlayerShow(PlayerObj player) { yield return(null); if (null == player) { yield break; } if (!CoreEntry.gMorphMgr.IsMorphing) { if (PlayerData.Instance.RideData.RideState == 1) { player.FuckHorse(PlayerData.Instance.RideData.RideID); } yield return(null); if (null == player) { yield break; } //BagInfo baginfo = PlayerData.Instance.BagData.GetBagInfo(BagType.ITEM_BAG_TYPE_EQUIP); player.ChangeWeapon(PlayerData.Instance.GetWeaponModelID()); yield return(null); if (null == player) { yield break; } //player.ChangeWing(BagData.GetWingModelID(WingMgr.Instance.GetHasEquipWingId())); //获取翅膀表id); player.ChangeWing(PlayerData.Instance.GetWingModelID()); //获取翅膀表id); yield return(null); } //法宝 if (null == player) { yield break; } player.ShowMagicKey(PlayerData.Instance.MagicKeyDataMgr.GetMasterMagicKey()); player.ShowMagicKeyByStar(PlayerData.Instance.MagicKeyDataMgr.GetMasterMagicKeyStar()); //阵法 if (null == player) { yield break; } player.ChangeZhenFa(PlayerData.Instance.BaseAttr.ZhenFa); }
/// <summary> /// 开始骑马。 /// </summary> public void StartRide() { RideData rd = PlayerData.Instance.RideData; if (rd.RideState == 0) { ActorObj actor = CoreEntry.gActorMgr.GetPlayerActorByServerID(PlayerData.Instance.RoleID); PlayerObj player = actor as PlayerObj; if (player != null) { player.FuckHorse(rd.RideID); } rd.RideState = 1; } }