NakatomiGameInstance Save updates
This commit is contained in:
parent
3ea7bc2dc4
commit
ee9718e9e3
|
@ -71,7 +71,7 @@ UNakatomiSaveGame* UNakatomiGameInstance::CreateNewSaveGame(FString PlayerName)
|
|||
if (UNakatomiSaveGame* Save = Cast<UNakatomiSaveGame>(
|
||||
UGameplayStatics::CreateSaveGameObject(UNakatomiSaveGame::StaticClass())))
|
||||
{
|
||||
SaveGameObject->PlayerName = PlayerName;
|
||||
Save->PlayerName = PlayerName;
|
||||
|
||||
if (UGameplayStatics::SaveGameToSlot(Save, PlayerName, 0))
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
UNakatomiSaveGame* LoadGameFromSlot(FString SaveSlotName);
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
bool SaveGame(bool ResetDefaults);
|
||||
bool SaveGame(bool ResetDefaults = false);
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
UNakatomiSaveGame* GetSaveGameObject();
|
||||
|
|
Loading…
Reference in New Issue