본문 바로가기
Programing/C#

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

by 고니피즈 2017. 2. 8.
반응형

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

            { 

              timer1.Stop();

              timer2.Stop();

                MessageBox.Show("게임끝");            

            }

반응형