From 4e59acdfd8217cc5fb2790be8607da87568a91a5 Mon Sep 17 00:00:00 2001 From: Maximilien Naveau Date: Sat, 7 Oct 2023 23:44:53 +0200 Subject: [PATCH] Fix naming convention issues --- trampoline_unity/trampoline/Assets/Scripts/Tile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trampoline_unity/trampoline/Assets/Scripts/Tile.cs b/trampoline_unity/trampoline/Assets/Scripts/Tile.cs index e2bd392..24e9e94 100644 --- a/trampoline_unity/trampoline/Assets/Scripts/Tile.cs +++ b/trampoline_unity/trampoline/Assets/Scripts/Tile.cs @@ -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; @@ -45,7 +45,7 @@ public void OnDrop(PointerEventData eventData) Debug.Log("Dropped on a Tile"); if (eventData.pointerDrag != null) { - updateAbsolutePosition(); + UpdateAbsolutePosition(); eventData.pointerDrag.GetComponent(). anchoredPosition = absolutePosition_; eventData.pointerDrag.GetComponent().setDraggedOnTile(true);