예제 #1
0
 protected void OnPowerUpUsed(object sender, PowerUpUsedEventArgs data)
 {
     if (PowerUpUsed != null)
     {
         PowerUpUsed(this, data);
     }
 }
예제 #2
0
 protected void OnPowerUpUsed(object sender, PowerUpUsedEventArgs data)
 {
     if (PowerUpUsed != null)
     {
         PowerUpUsed(this, data);
     }
 }
예제 #3
0
 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);
 }