Example #1
0
    public void TryInteract(BasicCharacter character)
    {
        if (character.FuelHeld)
        {
            IFuel fuel = character.HeldObject as IFuel;
            if (fuel != null)
            {
                _globals.FireplaceHealth += fuel.GetFuelAmount();
            }

            character.DestroyHeldObject();
            _tooltip.FadeOut();
        }
    }
Example #2
0
    public void TryInteract(BasicCharacter character)
    {
        if (character.FuelHeld)
        {
            IFuel fuel = character.HeldObject as IFuel;
            if (fuel != null)
            {
                _globals.NewFireplaceHealth += fuel.GetFuelAmount();

                if (!Lit)
                {
                    _animationPlayer.Play("flash");
                }
            }

            character.DestroyHeldObject();
            _tooltip.FadeOut();
        }
    }