changed floor material, set default spawn point, made sort of interface for getting actor by clicking him

pull/4/head
Maxim 2 years ago
parent 62b44ce661
commit 4c09614bb6

@ -1,7 +1,7 @@
// Fill out your copyright notice in the Description page of Project Settings. // Fill out your copyright notice in the Description page of Project Settings.
#include "Kismet/GameplayStatics.h"
#include "MyGameMode.h" #include "MyGameMode.h"
#include "Kismet/GameplayStatics.h"
#include "Trooper.h" #include "Trooper.h"
AMyGameMode::AMyGameMode() : Super() { AMyGameMode::AMyGameMode() : Super() {

@ -25,4 +25,7 @@ void AMyPlayerController::EndTurn() {
void AMyPlayerController::OnLeftMouseClick() { void AMyPlayerController::OnLeftMouseClick() {
UE_LOG(LogTemp, Warning, TEXT("Mouse clicked")); UE_LOG(LogTemp, Warning, TEXT("Mouse clicked"));
FHitResult HitResult;
bool IsHitResult = GetHitResultUnderCursorByChannel(TraceTypeQuery1, false, HitResult);
UE_LOG(LogTemp, Warning, TEXT("hitted: %s"), IsHitResult ? "Yes" : "No");
} }

@ -27,4 +27,5 @@ private:
bool isMyTurn; bool isMyTurn;
void OnLeftMouseClick(); void OnLeftMouseClick();
}; };

Loading…
Cancel
Save