Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
refactor: remove unused Offset
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelRauber committed Jan 21, 2024
1 parent c8e6e78 commit 2626c23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions FairyTaleDefender/Assets/_Game/Scenes/Managers/Gameplay.unity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ public class SelectedWeaponTargetVisualizer : MonoBehaviour
[field: SerializeField]
private GameObject TargetVisualizationPrefab { get; set; } = default!;

[field: SerializeField]
private Vector3 Offset { get; set; } = new (0, 0.001f, 0);

private readonly List<GameObject> _visualizations = new();
private ICanTrackTarget? _currentTrackableTarget;

Expand Down Expand Up @@ -100,7 +97,6 @@ private void AddVisualizations(TargetPoint targetPoint)
var enemyTransform = targetPoint.Enemy.transform;

var visualization = Instantiate(TargetVisualizationPrefab, enemyTransform);
visualization.transform.localPosition += Offset;
_visualizations.Add(visualization);
}
}
Expand Down

0 comments on commit 2626c23

Please sign in to comment.