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 "CoreMinimal.h"
- #include "Runtime/Engine/Classes/Components/StaticMeshComponent.h"
- //#include "Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h"
- #include "GameFramework/Actor.h"
- #include "GamePiece.generated.h"
- UCLASS()
- class GAME_001_API AGamePiece : public AActor
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- AGamePiece();
- protected:
- // Called when the game starts or when spawned
- virtual void BeginPlay() override;
- public:
- UStaticMeshComponent* StaticMesh;
- // Called every frame
- virtual void Tick(float DeltaTime) override;
- // Handles click event
- void ReceiveActorOnClicked(FKey ButtonPressed = EKeys::LeftMouseButton) override;
- // Set mesh
- void SetMesh(UStaticMesh* Mesh);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement