17 lines
486 B
C++
17 lines
486 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "UI/GameUserWidget.h"
|
|
#include "FunctionLibraries/LuckyRobotsFunctionLibrary.h"
|
|
#include "Core/LuckyRobotsGameInstance.h"
|
|
|
|
void UGameUserWidget::NativeConstruct()
|
|
{
|
|
Super::NativeConstruct();
|
|
|
|
ULuckyRobotsGameInstance* LuckyRobotsGameInstance = ULuckyRobotsFunctionLibrary::GetLuckyRobotsGameInstance(this);
|
|
if (LuckyRobotsGameInstance)
|
|
{
|
|
LuckyRobotsGameInstance->GameUserWidget = this;
|
|
}
|
|
} |