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