public static void Main()
float[] attackTimes = {5.0f, 2.75f, 6.45f, 4.45f};
foreach (float i in attackTimes){
Console.WriteLine("Attack no. " + sliderIndex + " \nAttack Time: " + i + "s\n");
Console.WriteLine("Error at attack detection");
Console.WriteLine("Input attack number");
sliderIndex = Int32.Parse(Console.ReadLine());
if(sliderIndex > attacks || sliderIndex < 0){
Console.WriteLine("Invalid attack number. Please try again.\n");
Console.WriteLine("Selected attack:\n" + "Attack no." + sliderIndex +"\nAttack time: " + attackTimes[sliderIndex-1] + "s");
Console.WriteLine("Please confirm input y/n");
if(!Console.ReadLine().Equals("y")){
Console.WriteLine("Attacking...\n");
float sliderProgress = 0.0f;
if(sliderProgress <= attackTimes[sliderIndex - 1]){
float attackPercent = sliderProgress / attackTimes[sliderIndex - 1] * 100;
int attackRounded = Int32.Parse(Math.Round(attackPercent, 0).ToString());
Console.WriteLine("Attack Progress: " + attackRounded + "%");
Console.WriteLine("Attack successful!");