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 (CanInteract) { if (TooltipEnabled) { InteractTooltip tooltip = GetNode(TooltipPath) as InteractTooltip; tooltip?.FadeOut(); } CanInteract = false; character.PickupObject(this); } }
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(); } }