Example #1
0
    private void SetBulletSpecificity(ItemKind item)
    {
        switch (item)
        {
        case ItemKind.PIERCING: _bulletPoolManager.GetCollisionTags().Remove("Monster"); break;

        case ItemKind.GUIDED:   _bulletPoolManager.AddEvent(GuidedBullet);               break;

        case ItemKind.BOUNCING:
            _bulletPoolManager.GetCollisionTags().Remove("Wall");
            _bulletPoolManager.AddEvent(BouncingBullet);
            break;
        }
    }