Skip to content

Commit

Permalink
Fix naming convention issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilienNaveau committed Oct 7, 2023
1 parent 161171e commit 4e59acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trampoline_unity/trampoline/Assets/Scripts/Tile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private void Update()
{
}

public void updateAbsolutePosition()
public void UpdateAbsolutePosition()
{
boardTopLeftCorner_.x = boardRectTransform_.anchoredPosition.x - 0.5f * boardRectTransform_.sizeDelta.x;
boardTopLeftCorner_.y = boardRectTransform_.anchoredPosition.y + 0.5f * boardRectTransform_.sizeDelta.y;
Expand All @@ -45,7 +45,7 @@ public void OnDrop(PointerEventData eventData)
Debug.Log("Dropped on a Tile");
if (eventData.pointerDrag != null)
{
updateAbsolutePosition();
UpdateAbsolutePosition();
eventData.pointerDrag.GetComponent<RectTransform>().
anchoredPosition = absolutePosition_;
eventData.pointerDrag.GetComponent<DragAndDrop>().setDraggedOnTile(true);
Expand Down

0 comments on commit 4e59acd

Please sign in to comment.