public void PlayerInteracted() { if (IsInteractable) { print("interacted with CUBE"); InteractedEvent?.Invoke(); charge -= 0.05f; if (charge <= 0) { charge = 0; } } }
public void EndInteract(Actor instigator) { _onEndInteract?.Invoke(new InteractedEventInfo { instigator = instigator, interactedWith = this }); }