protected void OnPowerUpUsed(object sender, PowerUpUsedEventArgs data) { if (PowerUpUsed != null) { PowerUpUsed(this, data); } }
void Player_PowerUpUsed(object sender, PowerUpUsedEventArgs data) { client.Send(ProtocolType.Tcp, new Packet() { PacketType = PacketType.PowerUp, Content = (int)data.BrickType + "|" + (int)data.WhiteBricksAmount }); Console.WriteLine(data); }