Exemple #1
0
        public override void VisitAlien(Alien a)
        {
            // Aliens vs MissileGroup
            Debug.WriteLine("         collide:  {0} <-> {1}", a.GetName(), this.GetName());

            // Missile vs Alien
            ColPair.Collide((GameObject)this.GetFirstChild(), a);
        }
Exemple #2
0
        public override void VisitAlien(Alien a)
        {
            // Aliens vs MissileGroup
            Debug.WriteLine("         collide:  {0} <-> {1}", a.GetName(), this.GetName());

            // Missile vs Alien
            Debug.WriteLine("-------> Done  <--------");

            a.VisitMissile(this);
        }