Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "Components/ActorComponent.h"
- #include "MyActorComponent.generated.h"
- UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
- class MYPROJECT_API UMyActorComponent : public UActorComponent
- {
- GENERATED_BODY()
- public:
- // Sets default values for this component's properties
- UMyActorComponent();
- // Called when the game starts
- virtual void BeginPlay() override;
- // Called every frame
- virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;
- UPROPERTY(EditAnywhere, Category = "Attributes")
- int32 Stamina = 0;
- UPROPERTY(EditAnywhere, Category = "Attributes")
- float Health = 0;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement