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(); } }
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(); } }