public SurpriseBoxDrop(int x, int y) : base(x, y, RADIUS, (pj, server) =>
 {
     int randomPowerUpType = rng.Next(Enum.GetNames(typeof(PowerUpTypes)).Length);
     server.AddPowerUp(randomPowerUpType, pj);
 })
 {
     animationMachine = new SingleFrameAnimationMachine(new Animation(modelTexture, 1, 16, 16, 16));
     rotation         = (float)(rng.NextDouble() * Math.PI * 2);
 }
示例#2
0
 public BananaDrop(int x, int y) : base(x, y, RADIUS, (pj, server) =>
 {
     if (!pj.Immune)
     {
         server.AddBuff((int)BuffTypes.BananaStunBuff, pj);
     }
 })
 {
     animationMachine = new SingleFrameAnimationMachine(new Animation(modelTexture, 1, 16, 16, 16));
 }