IEnumerator DelayActivePlayerToGame(XKPlayerMoveCtrl playerScript) { playerScript.SetIsActiveZhuiYa(true); XKGlobalData.GetInstance().PlayAudioXuanYaDiaoLuo(); XkGameCtrl.GetInstance().SubGamePlayerHealth(playerScript.PlayerIndex, PlayerDamage, true); if (!XkGameCtrl.GetIsActivePlayer(playerScript.PlayerIndex)) { playerScript.SetIsActiveZhuiYa(false); yield break; } yield return(new WaitForSeconds(TimeResetPlayer)); XkGameCtrl.ActivePlayerToGame(playerScript.PlayerIndex, true); playerScript.SetIsActiveZhuiYa(false); }