void ChangeConsumableSounds() { if (weaponHolder.EquippedConsumable && weaponHolder.EquippedConsumable.GetName() == "Snake Oil") { SnakeOil snakeOil = (SnakeOil)weaponHolder.EquippedConsumable; snakeOil.OnBackToNormalTime.AddListener(PlayDeadEyeExitSound); } }
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(); } } } }