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.
32 lines
775 B
32 lines
775 B
2 years ago
|
// Fill out your copyright notice in the Description page of Project Settings.
|
||
|
|
||
|
#include "ManageSquadTrooper.h"
|
||
|
|
||
|
AManageSquadTrooper::AManageSquadTrooper() {
|
||
2 years ago
|
GetMesh()->SetCollisionResponseToAllChannels(
|
||
|
ECollisionResponse::ECR_Overlap);
|
||
2 years ago
|
}
|
||
|
|
||
|
// 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::
|
||
2 years ago
|
ChangeSkeletalMesh(const AManageSquadTrooper *OtherTrooper) const {
|
||
2 years ago
|
GetMesh()->SetSkeletalMesh(OtherTrooper->GetMesh()->SkeletalMesh);
|
||
|
}
|
||
|
|
||
|
ETrooperType AManageSquadTrooper::GetType() const {
|
||
|
return Type;
|
||
|
}
|
||
|
|
||
|
int AManageSquadTrooper::GetIndex() const {
|
||
|
return Index;
|
||
|
}
|