示例#1
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();
                }
            }
        }
    }