Exemplo n.º 1
0
 public void doYourThing(Player player)
 {
     switch (type)
     {
         case PowerUpType.HoleSize:
             HoleManager.cangeAllHolesSize();
             break;
         case PowerUpType.HolePos:
             HoleManager.changeAllHolesPlace();
             break;
         case PowerUpType.BiggerPlayerSize:
             player.changeSizeBig();
             break;
         case PowerUpType.SmallerPlayerSize:
             player.changeSizeSmall();
             break;
         case PowerUpType.SplitPlayer:
             Vector3 temp = player.getCenter();
             player.changePlayerType("duplicate", new Vector2(temp.X,temp.Z));
             break;
         case PowerUpType.NormalPlayer:
             player.changeAllStatic();
             break;
         case PowerUpType.ChangeFolds:
             GameManager.changeFolds();
             break;
         case PowerUpType.ExtraTime:
             GameManager.changeTime();
             break;
     }
 }
Exemplo n.º 2
0
 public void doYourThing(Player player)
 {
     switch (type)
     {
         // V
         case PowerUpType.HoleSize:
             HoleManager.cangeAllHolesSize();
             break;
         // V
         case PowerUpType.HolePos:
             HoleManager.changeAllHolesPlace();
             break;
         // V
         case PowerUpType.PlayerSize:
             player.changeSize();
             break;
         // V
         case PowerUpType.PlayerPos:
             player.changePos(new Random().Next(-25, 25));
             break;
         case PowerUpType.SplitPlayer:
             player.changePlayerType("duplicate", (int)worldPosition.X, (int)worldPosition.Y);
             break;
         case PowerUpType.DryPlayer:
             player.changePlayerType("static", (int)worldPosition.X, (int)worldPosition.Y);
             break;
         case PowerUpType.NormalPlayer:
             player.changePlayerType("normal", (int)worldPosition.X, (int)worldPosition.Y);
             break;
     }
 }