// 处理球员铲球 void _processActorSliding(FBActor actor) { if (m_ball.owner == actor && !actor.isDoorKeeper()) { return; } foreach (var p in m_actors) { if (actor.checkSlidingTarget(p)) { if (m_ball.owner == p) { // 铲到持球队员 //int rnd = randomValue; //if (rnd % 100 > 50) //{ // p.beSlid_dropBall(); // m_ball.transfer(actor); //} //else if (rnd % 100 > 50) if (true) { _processAttack(actor, m_ball.owner); } else { p.beSlid_keepBall(); } } else { // 铲到无球队员 _processAttack(actor, p); } } } }