diff --git a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlock.cs b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlock.cs index 1fac0da..c70f5e1 100644 --- a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlock.cs +++ b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlock.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnrealEngine.Engine; using UnrealEngine.InputCore; using UnrealEngine.Runtime; @@ -14,8 +9,8 @@ class APuzzleBlock : AActor { // These are private fields. These aren't visible to UE4 in any way. // This may be undesirable; such as in cases where you may want to duplicate a block. These wouldn't get serialized. - private bool isActive; - private bool isHighlighted; + private bool _isActive; + private bool _isHighlighted; [UProperty, EditAnywhere, BlueprintReadWrite, ExposeOnSpawn] public APuzzleBlockGrid OwningGrid { get; set; } @@ -61,15 +56,15 @@ public override void Initialize(FObjectInitializer initializer) } } - protected override void ReceiveActorOnClicked_Implementation(FKey ButtonPressed) + protected override void ReceiveActorOnClicked_Implementation(FKey buttonPressed) { - base.ReceiveActorOnClicked_Implementation(ButtonPressed); + base.ReceiveActorOnClicked_Implementation(buttonPressed); HandleControllerClick(); } - protected override void ReceiveActorOnInputTouchBegin_Implementation(ETouchIndex FingerIndex) + protected override void ReceiveActorOnInputTouchBegin_Implementation(ETouchIndex fingerIndex) { - base.ReceiveActorOnInputTouchBegin_Implementation(FingerIndex); + base.ReceiveActorOnInputTouchBegin_Implementation(fingerIndex); HandleControllerClick(); } @@ -91,9 +86,9 @@ protected override void ReceiveActorEndCursorOver_Implementation() /// public void HandleControllerClick() { - if (!isActive) + if (!_isActive) { - isActive = true; + _isActive = true; BlockMesh.SetMaterial(0, orangeMaterial.Value); if (OwningGrid != null) { @@ -104,10 +99,10 @@ public void HandleControllerClick() public void DoHighlight(bool on) { - if (!isActive && isHighlighted != on) + if (!_isActive && _isHighlighted != on) { - isHighlighted = on; - BlockMesh.SetMaterial(0, isHighlighted ? baseMaterial.Value : blueMaterial.Value); + _isHighlighted = on; + BlockMesh.SetMaterial(0, _isHighlighted ? baseMaterial.Value : blueMaterial.Value); } } } diff --git a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlockGrid.cs b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlockGrid.cs index 754859e..f1b89bf 100644 --- a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlockGrid.cs +++ b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleBlockGrid.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnrealEngine.Engine; using UnrealEngine.Runtime; diff --git a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleGameMode.cs b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleGameMode.cs index d23d640..63a956c 100644 --- a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleGameMode.cs +++ b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzleGameMode.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnrealEngine.Runtime; using UnrealEngine.Engine; diff --git a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerCharacter.cs b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerCharacter.cs index 7a2b1a5..edcd2d2 100644 --- a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerCharacter.cs +++ b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerCharacter.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnrealEngine.Engine; using UnrealEngine.HeadMountedDisplay; using UnrealEngine.Runtime; @@ -68,9 +63,9 @@ protected override void SetupPlayerInputComponent(UInputComponent playerInputCom playerInputComponent.BindAction("TriggerClick", EInputEvent.Pressed, OnTriggerClick); } - protected override void ReceiveTick_Implementation(float DeltaSeconds) + protected override void ReceiveTick_Implementation(float deltaSeconds) { - base.ReceiveTick_Implementation(DeltaSeconds); + base.ReceiveTick_Implementation(deltaSeconds); // Determine which Puzzle Block the player is looking at and highlight it. if (UHeadMountedDisplayFunctionLibrary.IsHeadMountedDisplayEnabled()) diff --git a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerController.cs b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerController.cs index efc02f2..a6a260b 100644 --- a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerController.cs +++ b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/PuzzlePlayerController.cs @@ -1,11 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnrealEngine.Runtime; using UnrealEngine.Engine; -using UnrealEngine.InputCore; namespace TP_Puzzle { diff --git a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/TP_Puzzle.Managed.csproj b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/TP_Puzzle.Managed.csproj index 9cb6954..a73b49c 100644 --- a/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/TP_Puzzle.Managed.csproj +++ b/Templates/TP_Puzzle/Managed/TP_Puzzle.Managed/TP_Puzzle.Managed.csproj @@ -1,44 +1,14 @@ - - - - + - Debug - AnyCPU - {%USHARP_CSPROJ_GUID%} - Library TP_Puzzle - v4.5.2 + netcoreapp3.0 + $(OutDir) - true full - false - $(OutDir) - TP_Puzzle.Managed - prompt - DEBUG;TRACE - prompt - 4 pdbonly - true - $(OutDir) - TP_Puzzle.Managed - TRACE - prompt - 4 - - - - - - - - - - - - \ No newline at end of file + +