| | |
| | | PlayerDatas.Instance.FightRefreshPlayerHp((uint)maxHp); |
| | | PlayerDatas.Instance.hero.IdleImmediate(); |
| | | PlayerDatas.Instance.hero.Behaviour.StopHandupAI(true); |
| | | PlayerDatas.Instance.hero.StopPathFind(); |
| | | PlayerDatas.Instance.hero.SkillMgr.ResetAllCD(); |
| | | |
| | | opponentPlayer.Pos = ClientCrossServerOneVsOne.myPlace == 1 ? rightBornPoint : leftBornPoint; |
| | |
| | | GA_PVPClientPlayer.AutoAI(true); |
| | | opponentPlayer.SelectTarget = PlayerDatas.Instance.hero; |
| | | PlayerDatas.Instance.hero.SelectTarget = opponentPlayer; |
| | | #if UNITY_EDITOR |
| | | Debug.LogFormat("进入阶段:{0}", pkStageType); |
| | | #endif |
| | | } |
| | | |
| | | public override void End() |
| | |
| | | { |
| | | figthCompleted = true; |
| | | PlayerDatas.Instance.hero.Behaviour.StopHandupAI(true); |
| | | PlayerDatas.Instance.hero.StopPathFind(); |
| | | GA_PVPClientPlayer.AutoAI(false); |
| | | } |
| | | else if (timer >= duration) |
| | | { |
| | | figthCompleted = true; |
| | | PlayerDatas.Instance.hero.Behaviour.StopHandupAI(true); |
| | | PlayerDatas.Instance.hero.StopPathFind(); |
| | | GA_PVPClientPlayer.AutoAI(false); |
| | | if (PlayerDatas.Instance.hero.ActorInfo.RealHp >= opponentPlayer.ActorInfo.RealHp) |
| | | { |