You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
497 B
31 lines
497 B
2 years ago
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "CoreMinimal.h"
|
||
|
#include "GameFramework/PlayerController.h"
|
||
|
#include "MyPlayerController.generated.h"
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
UCLASS()
|
||
|
class TURNBASEDTUTORIAL_API AMyPlayerController : public APlayerController
|
||
|
{
|
||
|
GENERATED_BODY()
|
||
|
|
||
|
public:
|
||
|
AMyPlayerController();
|
||
|
|
||
|
void StartTurn();
|
||
|
|
||
|
void EndTurn();
|
||
|
|
||
|
virtual void SetupInputComponent() override;
|
||
|
|
||
|
private:
|
||
|
bool isMyTurn;
|
||
|
|
||
|
void OnLeftMouseClick();
|
||
|
};
|