public void BallMove(int id, int dir) { for (int i = 0; i < listBall.Count; i++) { NetObject ball = listBall[i]; if (ball.GetUid() == id) { ball.SetDir(dir); } } }