ToonTanks/Source/ToonTanks/ToonTanksPlayerController.cpp
2025-05-13 23:02:57 +09:00

13 lines
328 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "ToonTanksPlayerController.h"
void AToonTanksPlayerController::SetPlayerEnabledState(bool bPlayerEnabled)
{
if (bPlayerEnabled)
GetPawn()->EnableInput(this);
else
GetPawn()->DisableInput(this);
bShowMouseCursor = bPlayerEnabled;
}