Пример #1
0
        private void ObjectBreak()
        {
            if (!(this.chara is ObjectBase))
            {
                return;
            }
            ObjectBase chara = (ObjectBase)this.chara;

            if (chara.hitbreak)
            {
                bool[,] hitflag = this.hitflag;
                int upperBound1 = hitflag.GetUpperBound(0);
                int upperBound2 = hitflag.GetUpperBound(1);
                for (int lowerBound1 = hitflag.GetLowerBound(0); lowerBound1 <= upperBound1; ++lowerBound1)
                {
                    for (int lowerBound2 = hitflag.GetLowerBound(1); lowerBound2 <= upperBound2; ++lowerBound2)
                    {
                        if (hitflag[lowerBound1, lowerBound2])
                        {
                            chara.Break();
                            goto label_10;
                        }
                    }
                }
                label_10 :;
            }
        }