public void SendShootData() { if (ClientName != Client.ReceiverGameData.TurnPlayerName || Client.ReceiverGameData.Shoots.Count == 3) { return; } var shootInfo = new ShootInfo { MousePoint = { X = GMouse.Position.X, Y = GMouse.Position.Y }, ShootScore = Darts.GetIntersectedSegmentScore() }; Client.ReceiverGameData.Shoots.Add(shootInfo); Client.SendGameMessage(); }
public GDarts(Texture2D dartsTex) { Darts = new Darts(dartsTex); Initialize(); }