Advertisement
Guest User

Untitled

a guest
Jun 18th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "Components/ActorComponent.h"
  6. #include "MyActorComponent.generated.h"
  7.  
  8.  
  9. UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
  10. class MYPROJECT_API UMyActorComponent : public UActorComponent
  11. {
  12.     GENERATED_BODY()
  13.  
  14. public:
  15.     // Sets default values for this component's properties
  16.     UMyActorComponent();
  17.  
  18.     // Called when the game starts
  19.     virtual void BeginPlay() override;
  20.    
  21.     // Called every frame
  22.     virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;
  23.  
  24.     UPROPERTY(EditAnywhere, Category = "Attributes")
  25.         int32 Stamina = 0;
  26.     UPROPERTY(EditAnywhere, Category = "Attributes")
  27.         float Health = 0;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement