Exemple #1
0
        public override void Visit(ShipBulletCol b)
        {
            //BombGroup hit Bullet --> visit children of this
            GameObject BombChild = (GameObject)Iterator.GetChild(this);

            CollisionPair.Collide(b, BombChild);
        }
Exemple #2
0
        public override void Visit(BombCol b)
        {
            //BombGroup hit Grid Or Block Collum --> visit children of this
            GameObject ShiledChildren = (GameObject)Iterator.GetChild(this);

            CollisionPair.Collide(b, ShiledChildren);
        }
Exemple #3
0
        public override void Visit(AliensCol b)
        {
            // Alien Hit Shield Group --> visit children of this
            GameObject ShieldChildren = (GameObject)Iterator.GetChild(this);

            CollisionPair.Collide(b, ShieldChildren);
        }
Exemple #4
0
        public override void Visit(ShipBulletCol b)
        {
            GameObject BulletChildren = (GameObject)Iterator.GetChild(b);

            CollisionPair.Collide(BulletChildren, this);
        }