Skip to content

Commit

Permalink
🐛 fix(snappable): Fix error by debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
esnya committed May 31, 2022
1 parent 31d1d9e commit ee568e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ public void _TakeOwnership()
public void _Snap()
{
snapTarget = FindSnapTarget();
Debug.Log($"[{this}] Snapping: {snapTarget}");
Debug.Log($"[{this}] Snapping");
if (snapTarget)
{
_TakeOwnership();
transform.SetPositionAndRotation(snapTarget.position, snapTarget.rotation);
if (reparent) transform.SetParent(snapTarget);
Debug.Log($"[{this}] Snapped {snapTarget}");
}
Debug.Log($"[{this}] Snapped");
}

public void _Release()
Expand Down

Large diffs are not rendered by default.

0 comments on commit ee568e6

Please sign in to comment.