コード例 #1
0
        public virtual void Collide(ICollider other)
        {
            if (other is Peg)
            {
                other.Trigger();
            }

            if (other is Chute)
            {
                this.GameBoard.PegPhysicsManager.DestroyBody(this.Body);
                this.BallDead = true;
                other.Trigger();
                this.GameBoard.RoundOver();
            }
        }