2026-03-30 머리카락 물리효과, 아이템 습득 버그 수정
This commit is contained in:
BIN
Assets/01_Scenes/GameScene.unity
LFS
BIN
Assets/01_Scenes/GameScene.unity
LFS
Binary file not shown.
@@ -79,8 +79,6 @@ public void MoveItem(int sourceIndex, int targetIndex)
|
|||||||
int canAdd = Items[targetIndex].Data.MaxStack - Items[targetIndex].CurrentStack;
|
int canAdd = Items[targetIndex].Data.MaxStack - Items[targetIndex].CurrentStack;
|
||||||
int actualAdd = Mathf.Min(canAdd, Items[sourceIndex].CurrentStack);
|
int actualAdd = Mathf.Min(canAdd, Items[sourceIndex].CurrentStack);
|
||||||
|
|
||||||
Debug.Log($"actualAdd : {actualAdd}");
|
|
||||||
|
|
||||||
Items[targetIndex].CurrentStack += actualAdd;
|
Items[targetIndex].CurrentStack += actualAdd;
|
||||||
Items[sourceIndex].CurrentStack -= actualAdd;
|
Items[sourceIndex].CurrentStack -= actualAdd;
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public void OnEndDrag(PointerEventData eventData)
|
|||||||
{
|
{
|
||||||
// eventData.pointerEnter는 드래그가 끝난 지점에 마우스가 가리키고 있는 오브젝트 (이전까지 _canvasGroup.blocksRaycasts = false; 였으므로 자신 제외)
|
// eventData.pointerEnter는 드래그가 끝난 지점에 마우스가 가리키고 있는 오브젝트 (이전까지 _canvasGroup.blocksRaycasts = false; 였으므로 자신 제외)
|
||||||
// 가르키는 오브젝트가 없거나, UI 레이어가 아니라면 버린것으로 간주
|
// 가르키는 오브젝트가 없거나, UI 레이어가 아니라면 버린것으로 간주
|
||||||
bool isDroppedOutsideUI = eventData.pointerEnter == null || eventData.pointerEnter.layer != LayerMask.NameToLayer("UI");
|
bool isDroppedOutsideUI = eventData.pointerEnter == null || eventData.pointerEnter.layer != LayerMask.NameToLayer("ControlUI");
|
||||||
|
|
||||||
if (isDroppedOutsideUI)
|
if (isDroppedOutsideUI)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -80,8 +80,6 @@ public void OnDrop(PointerEventData eventData)
|
|||||||
}
|
}
|
||||||
public void OnPointerEnter(PointerEventData eventData)
|
public void OnPointerEnter(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
Debug.Log("PointerEnter");
|
|
||||||
|
|
||||||
if (currentItem != null && currentItem.Data != null)
|
if (currentItem != null && currentItem.Data != null)
|
||||||
{
|
{
|
||||||
// 드래그 중에는 툴팁 안띄움
|
// 드래그 중에는 툴팁 안띄움
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ public class SplitWindowUI : MonoBehaviour
|
|||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Open(int max, Action<int> onConfirm)
|
public void Open(int max, Action<int> onConfirm)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
BIN
ProjectSettings/TagManager.asset
LFS
BIN
ProjectSettings/TagManager.asset
LFS
Binary file not shown.
Reference in New Issue
Block a user