Skip to content

Commit 2c7a9f9

Browse files
committed
Don't set target entity
1 parent e6f5dbf commit 2c7a9f9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ protected void UpdateLookInput()
312312
{
313313
foundTargetEntity = true;
314314
CacheUISceneGameplay.SetTargetEntity(tempGameEntity.Entity);
315-
PlayerCharacterEntity.SetTargetEntity(tempGameEntity.Entity);
316315
SelectedEntity = tempGameEntity.Entity;
317316
if (tempGameEntity.Entity != PlayerCharacterEntity.Entity)
318317
{
@@ -353,7 +352,6 @@ protected void UpdateLookInput()
353352
{
354353
foundTargetEntity = true;
355354
CacheUISceneGameplay.SetTargetEntity(tempGameEntity.Entity);
356-
PlayerCharacterEntity.SetTargetEntity(tempGameEntity.Entity);
357355
SelectedEntity = tempGameEntity.Entity;
358356
if (tempGameEntity.Entity != PlayerCharacterEntity.Entity)
359357
{
@@ -386,7 +384,6 @@ protected void UpdateLookInput()
386384
if (!foundTargetEntity)
387385
{
388386
CacheUISceneGameplay.SetTargetEntity(null);
389-
PlayerCharacterEntity.SetTargetEntity(null);
390387
SelectedEntity = null;
391388
}
392389

0 commit comments

Comments
 (0)