Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RATSIMULATOR_API AInteractableBase : public AActor, public IInteractInterface
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- AInteractableBase();
- UPROPERTY(EditAnywhere, BlueprintReadWrite)
- UStaticMeshComponent* Mesh;
- protected:
- virtual void BeginPlay() override;
- public:
- virtual void Tick(float DeltaTime) override;
- UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category=Interact)
- void OnFocus();
- virtual void OnFocus_Implementation() override;
- UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category=Interact)
- void OnFocusLost();
- virtual void OnFocusLost_Implementation() override;
- UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category=Interact)
- void OnInteract(AActor* Caller);
- virtual void OnInteract_Implementation(AActor* Caller) override;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement