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.
awesome_game/Source/TurnBasedTutorial/ManageSquadTrooper.cpp

31 lines
760 B

// Fill out your copyright notice in the Description page of Project Settings.
#include "ManageSquadTrooper.h"
AManageSquadTrooper::AManageSquadTrooper() {
GetMesh()->SetCollisionResponseToAllChannels(ECollisionResponse::ECR_Overlap);
}
// Called when the game starts or when spawned
void AManageSquadTrooper::BeginPlay() {
Super::BeginPlay();
}
// Called every frame
void AManageSquadTrooper::Tick(float DeltaTime) {
Super::Tick(DeltaTime);
}
void AManageSquadTrooper::
ChangeSkeletalMesh(const AManageSquadTrooper *OtherTrooper) {
GetMesh()->SetSkeletalMesh(OtherTrooper->GetMesh()->SkeletalMesh);
}
ETrooperType AManageSquadTrooper::GetType() const {
return Type;
}
int AManageSquadTrooper::GetIndex() const {
return Index;
}