You've already forked LuckyWorld
Rename entire project to LuckyWorldV2, including uproject file, folders and so on
This commit is contained in:
19
Source/LuckyWorldV2/TP_VehicleAdvUI.cpp
Normal file
19
Source/LuckyWorldV2/TP_VehicleAdvUI.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
|
||||
#include "TP_VehicleAdvUI.h"
|
||||
|
||||
void UTP_VehicleAdvUI::UpdateSpeed(float NewSpeed)
|
||||
{
|
||||
// format the speed to KPH or MPH
|
||||
float FormattedSpeed = FMath::Abs(NewSpeed) * (bIsMPH ? 0.022f : 0.036f);
|
||||
|
||||
// call the Blueprint handler
|
||||
OnSpeedUpdate(FormattedSpeed);
|
||||
}
|
||||
|
||||
void UTP_VehicleAdvUI::UpdateGear(int32 NewGear)
|
||||
{
|
||||
// call the Blueprint handler
|
||||
OnGearUpdate(NewGear);
|
||||
}
|
Reference in New Issue
Block a user