2025-04-03 10:13:55 +08:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
|
2025-04-07 10:28:47 +08:00
|
|
|
#include "UI/GameUserWidget.h"
|
|
|
|
#include "FunctionLibraries/LuckyRobotsFunctionLibrary.h"
|
|
|
|
#include "Core/LuckyRobotsGameInstance.h"
|
2025-04-03 10:13:55 +08:00
|
|
|
|
|
|
|
void UGameUserWidget::NativeConstruct()
|
|
|
|
{
|
|
|
|
Super::NativeConstruct();
|
|
|
|
|
|
|
|
ULuckyRobotsGameInstance* LuckyRobotsGameInstance = ULuckyRobotsFunctionLibrary::GetLuckyRobotsGameInstance(this);
|
|
|
|
if (LuckyRobotsGameInstance)
|
|
|
|
{
|
|
|
|
LuckyRobotsGameInstance->GameUserWidget = this;
|
|
|
|
}
|
|
|
|
}
|