public override bool OnDropItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     _playerMovementBehaviour.MaxVelocity -= IncreaseValue;
     inventorySlotBehaviour.PlayAnimation("InventorySlotBounceContract");
     AudioManager.Play(ItemDrop, AudioCategory.Effect, 0.55f);
     return(true);
 }
        public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
        {
            _playerShootBehaviour.HomingStrength += 1;

            AudioManager.Play(PickupItemAudioCip, AudioCategory.Effect);
            inventorySlotBehaviour.PlayAnimation("InventorySlotBounceLoop");
        }
Ejemplo n.º 3
0
        public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
        {
            inventorySlotBehaviour.PlayAnimation("InventorySlotBounceLoop");

            _healthBehaviour.MaxHealth += IncreaseValue;

            AudioManager.Play(healthSFX, AudioCategory.Effect, 0.75f, false);
        }
        public override bool OnDropItem(InventorySlotBehaviour inventorySlotBehaviour)
        {
            _playerShootBehaviour.AdditionalDamage -= IncreaseValue;
            inventorySlotBehaviour.PlayAnimation("InventorySlotBounceContract");
            AudioManager.Play(itemDrop, AudioCategory.Effect, 0.55f);

            return(true);
        }
 public override bool OnDropItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     if (!_isUsed)
     {
         inventorySlotBehaviour.PlayAnimation("InventorySlotBounceContract");
         AudioManager.Play(itemDrop, AudioCategory.Effect, 0.55f);
     }
     return(true);
 }
Ejemplo n.º 6
0
        public override bool OnDropItem(InventorySlotBehaviour inventorySlotBehaviour)
        {
            _healthBehaviour.MaxHealth -= IncreaseValue;

            inventorySlotBehaviour.PlayAnimation("InventorySlotBounceContract");
            AudioManager.Play(itemDrop, AudioCategory.Effect, 0.45f);

            return(true);
        }
        public override bool OnDropItem(InventorySlotBehaviour inventorySlotBehaviour)
        {
            _playerShootBehaviour.HomingStrength -= 1;

            inventorySlotBehaviour.PlayAnimation("InventorySlotBounceContract");
            AudioManager.Play(DropItemAudioClip, AudioCategory.Effect, 0.55f);

            return(true);
        }
        public override void OnUseItem(InventorySlotBehaviour inventorySlotBehaviour)
        {
            if (_healthBehaviour.Value < _healthBehaviour.MaxHealth)
            {
                _isUsed = true;

                _healthBehaviour.Value += IncreaseValue;
                AudioManager.Play(healthSFX, AudioCategory.Effect);
                inventorySlotBehaviour.PlayAnimation("InventorySlotBounceExpand");
                inventorySlotBehaviour.DropItem();
                Destroy(gameObject);
            }
        }
        public override void OnUseItem(InventorySlotBehaviour inventorySlotBehaviour)
        {
            if (_playerHealthBehaviour.Value < _playerHealthBehaviour.MaxHealth)
            {
                _isUsed = true;

                _playerHealthBehaviour.Value += IncreaseValue;
                AudioManager.Play(healthSFX, AudioCategory.Effect, 1.0f);
                inventorySlotBehaviour.PlayAnimation("InventorySlotBounceExpand");
                inventorySlotBehaviour.DropItem();

                // emit health event so tutorial room unlocks
                EventManager.Emit(new HealthChangedEventArgs
                {
                    GameObject = gameObject,
                    OldValue   = 0,
                    NewValue   = 0,
                });

                Destroy(gameObject);
            }
        }
 public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     AudioManager.Play(ItemPickup, AudioCategory.Effect);
     inventorySlotBehaviour.PlayAnimation("InventorySlotBounceExpand");
 }
 public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     AudioManager.Play(RateOfFireSFX, AudioCategory.Effect);
     _playerShootBehaviour.FireRate += IncreaseValue;
     inventorySlotBehaviour.PlayAnimation("InventorySlotBounceLoop");
 }
 public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     AudioManager.Play(LifeStealSFX, AudioCategory.Effect, 0.9f);
     inventorySlotBehaviour.PlayAnimation("InventorySlotBounceLoop");
 }
 public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     AudioManager.Play(WeaponDamageSFX, AudioCategory.Effect);
     _playerShootBehaviour.AdditionalDamage += IncreaseValue;
     inventorySlotBehaviour.PlayAnimation("InventorySlotBounceLoop");
 }
 public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     _playerMovementBehaviour.MaxVelocity += IncreaseValue;
     AudioManager.Play(SpeedUp, AudioCategory.Effect);
     inventorySlotBehaviour.PlayAnimation("InventorySlotBounceLoop");
 }
Ejemplo n.º 15
0
 public override void OnPickupItem(InventorySlotBehaviour inventorySlotBehaviour)
 {
     _playerShootBehaviour.ProjectileScale += IncreaseValue;
     inventorySlotBehaviour.PlayAnimation("InventorySlotBounceLoop");
     AudioManager.Play(PickupItemAudioCip, AudioCategory.Effect);
 }