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