Skip to content

Commit

Permalink
Revert "Bring codes that set target entity back to fix character not …
Browse files Browse the repository at this point in the history
…casting skill to target entity issues. But this can cause missile not to go aiming target which have to fix at CORE :("

This reverts commit d7510ab.
  • Loading branch information
insthync committed May 28, 2021
1 parent d7510ab commit 14cfb31
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Scripts/AimAtCursorPlayerCharacterController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ protected void UpdateLookInput()
{
foundTargetEntity = true;
CacheUISceneGameplay.SetTargetEntity(tempGameEntity.Entity);
PlayerCharacterEntity.SetTargetEntity(tempGameEntity.Entity);
SelectedEntity = tempGameEntity.Entity;
if (tempGameEntity.Entity != PlayerCharacterEntity.Entity)
{
Expand Down Expand Up @@ -356,7 +355,6 @@ protected void UpdateLookInput()
{
foundTargetEntity = true;
CacheUISceneGameplay.SetTargetEntity(tempGameEntity.Entity);
PlayerCharacterEntity.SetTargetEntity(tempGameEntity.Entity);
SelectedEntity = tempGameEntity.Entity;
if (tempGameEntity.Entity != PlayerCharacterEntity.Entity)
{
Expand All @@ -382,7 +380,6 @@ protected void UpdateLookInput()
if (!foundTargetEntity)
{
CacheUISceneGameplay.SetTargetEntity(null);
PlayerCharacterEntity.SetTargetEntity(null);
SelectedEntity = null;
}

Expand Down

0 comments on commit 14cfb31

Please sign in to comment.