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);