private void player_AfterPlayerShooted(Player player, int delay) { if (this.m_oldBall != -1) { if (BallMgr.IsExist(this.m_oldBall)) { player.CurrentBall = BallMgr.FindBall(this.m_oldBall); player.Game.SendGameUpdateBall(player, false); this.m_oldBall = -1; } } }
public void SetBall(int ballId, bool special) { if (BallMgr.IsExist(ballId)) { if (ballId != this.m_currentBall.ID) { this.m_currentBall = BallMgr.FindBall(ballId); if (ballId != 4) { this.BallCount = this.m_currentBall.Amount; } if (!special && ballId != 4) { this.ShootCount = 1; } this.m_game.SendGameUpdateBall(this, special); } } }