Пример #1
0
        public override void Visit(BombLeaf b)
        {
            CollisionPair pair = ColPairMan.Find(CollisionPairName.Bomb_Shield);

            pair.SetCollision(b, this);
            pair.Notify();
        }
Пример #2
0
        public override void Visit(BombLeaf a)
        {
            CollisionPair pair = ColPairMan.Find(CollisionPairName.Bomb_Wall);

            pair.SetCollision(a, this);
            pair.Notify();
        }
Пример #3
0
        public override void Visit(BombLeaf b)
        {
            // Bombleaf Hit Shipleaf ->Do Something
            CollisionPair pair = ColPairMan.Find(CollisionPairName.Bomb_Ship);

            pair.SetCollision(b, this);
            pair.Notify();
        }
Пример #4
0
        public override void Fall(BombLeaf pBomb)
        {
            float targetY = oldPosY - 1.0f * pBomb.GetHeight();

            if (pBomb.y < targetY)
            {
                pBomb.MultiplyScale(1.0f, -1.0f);
                oldPosY = targetY;
            }
        }
Пример #5
0
 public override void Fall(BombLeaf pBomb)
 {
 }
Пример #6
0
 public virtual void Visit(BombLeaf bombCol)
 {
 }