Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "Runtime/Engine/Classes/Components/StaticMeshComponent.h"
  7. //#include "Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h"
  8. #include "GameFramework/Actor.h"
  9. #include "GamePiece.generated.h"
  10.  
  11. UCLASS()
  12. class GAME_001_API AGamePiece : public AActor
  13. {
  14.     GENERATED_BODY()
  15.  
  16. public:
  17.     // Sets default values for this actor's properties
  18.     AGamePiece();
  19.  
  20. protected:
  21.     // Called when the game starts or when spawned
  22.     virtual void BeginPlay() override;
  23. public:
  24.     UStaticMeshComponent* StaticMesh;
  25.  
  26.     // Called every frame
  27.     virtual void Tick(float DeltaTime) override;
  28.  
  29.     // Handles click event
  30.     void ReceiveActorOnClicked(FKey ButtonPressed = EKeys::LeftMouseButton) override;
  31.  
  32.     // Set mesh
  33.     void SetMesh(UStaticMesh* Mesh);
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement