Esempio n. 1
0
 void ChangeConsumableSounds()
 {
     if (weaponHolder.EquippedConsumable && weaponHolder.EquippedConsumable.GetName() == "Snake Oil")
     {
         SnakeOil snakeOil = (SnakeOil)weaponHolder.EquippedConsumable;
         snakeOil.OnBackToNormalTime.AddListener(PlayDeadEyeExitSound);
     }
 }
Esempio n. 2
0
    public void StopDeadEyeEffect()
    {
        Consumable consumable = weaponHolder.EquippedConsumable;

        if (consumable && consumable.IsInUse)
        {
            consumable.CancelUse();
            if (consumable.GetName() == "Snake Oil")
            {
                SnakeOil snakeOil = (SnakeOil)consumable;
                if (snakeOil.IsApplyingEffect)
                {
                    snakeOil.StopEffect();
                }
            }
        }
    }