Exemplo n.º 1
0
    public void Init(PlayerController playerController)
    {
        _playerController   = playerController;
        _bulletPoolManager  = BulletPoolManager.Instance;
        _bulletAttributeMgr = _bulletPoolManager.GetAttributeMgr();
        _magicalMuzzle      = GameObject.Find("Weapons").GetComponent <MagicalMuzzle>();

        _magicalMuzzle.AddEvent(Single);
        // 유도
//         _bulletPoolManager.AddEvent(GuidedBullet);
//         // 관통
//         _bulletPoolManager.GetCollisionTags().Remove("Monster");
//         // 바운싱
//         _bulletPoolManager.GetCollisionTags().Remove("Wall");
//         _bulletPoolManager.AddEvent(BouncingBullet);
    }