public override void VisitShieldBrick(ShieldBrick sb) { // AlienGridColumn vs ShieldBrick Debug.WriteLine(" collide: {0} <-> {1}", sb.GetName(), this.name); // Alien vs ShieldBrick GameObject pGameObj = Iterator.GetChildGameObject(this); CollisionPair.Collide(this, pGameObj); }
public override void VisitShieldBrick(ShieldBrick sb) { //ShieldBrick vs Missile Debug.WriteLine(" collide: {0} <-> {1}", sb.GetName(), this.name); // Notify Observers CollisionPair pColPair = CollisionPairManager.GetActiveColPair(); Debug.Assert(pColPair != null); pColPair.SetCollision(sb, this); pColPair.NotifyListeners(); }