public static void Vyresetuj(Form formular, Hrac hrac) { // Vyresetuje skore na nulu a životy nechá nastavit na 3 score = 0; listZivotu.Clear(); hrac.VyresetujZivoty(); for (int i = 0; i < hrac.zivoty; i++) { PictureBox pb = new PictureBox { Height = 35, Width = 35, Top = formular.Height - 70, Left = 550 + i * 40, Image = Image.FromFile("Heart30x30.png"), BackColor = Color.Transparent, }; formular.Controls.Add(pb); listZivotu.Add(pb); } }