Luckyrobots->LuckyRobots

This commit is contained in:
martinluckyrobots
2025-03-30 11:46:50 +08:00
parent 18f930099d
commit c9b279e906
15 changed files with 583 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "LobbyPlayerController.h"
void ALobbyPlayerController::BeginPlay()
{
Super::BeginPlay();
Init();
}
void ALobbyPlayerController::SetupInputComponent()
{
Super::SetupInputComponent();
InputComponent->BindAction("LobbyInit", IE_Pressed, this, &ALobbyPlayerController::Init).bConsumeInput = false;
InputComponent->BindAction("LobbyInit", IE_Released, this, &ALobbyPlayerController::Init).bConsumeInput = false;
}
void ALobbyPlayerController::Init()
{
bShowMouseCursor = true;
SetIgnoreMoveInput(true);
}