public void Impact_Shield_Pipes(Pipe pipe, Bird bird, Heart heart) { if (Shield_IsExist()) { if (X_Shield + recShield.Width >= pipe.X_pipePairs1 && X_Shield + recShield.Width <= pipe.X_pipePairs1 + 52) { if (Y_Shield <= 250 + pipe.Y_pipeAbove1) { if (pipe.pipe_Above1_Appearance) { SoundDisappearPipe(); pipe.pipe_Above1_Appearance = false; if (!bird.isGetGift) { heart.sign_decreaseHearts = true; } } } else if (Y_Shield + recShield.Height >= pipe.Y_pipeBottom1) { if (pipe.pipe_Bottom1_Appearance) { SoundDisappearPipe(); pipe.pipe_Bottom1_Appearance = false; if (!bird.isGetGift) { heart.sign_decreaseHearts = true; } } } } if (X_Shield + recShield.Width >= pipe.X_pipePairs2 && X_Shield + recShield.Width <= pipe.X_pipePairs2 + 52) { if (Y_Shield <= 250 + pipe.Y_pipeAbove2) { if (pipe.pipe_Above2_Appearance) { SoundDisappearPipe(); pipe.pipe_Above2_Appearance = false; if (!bird.isGetGift) { heart.sign_decreaseHearts = true; } } } else if (Y_Shield + recShield.Height >= pipe.Y_pipeBottom2) { if (pipe.pipe_Bottom2_Appearance) { SoundDisappearPipe(); pipe.pipe_Bottom2_Appearance = false; if (!bird.isGetGift) { heart.sign_decreaseHearts = true; } } } } } }