13 lines
328 B
C++
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;
|
|
} |