Programing/C#

c# 충돌감지,처리,게임,IntersectsWith,Bounds,game

고니의 경제주식 2017. 2. 8. 12:03
반응형

   if ((pictureBox1.Bounds.IntersectsWith(button1.Bounds)) || (pictureBox2.Bounds.IntersectsWith(button1.Bounds) )       || (pictureBox3.Bounds.IntersectsWith(button1.Bounds) ))

            { 

              timer1.Stop();

              timer2.Stop();

                MessageBox.Show("게임끝");            

            }

반응형