bubblecomplete

This commit is contained in:
2025-07-22 15:57:29 +09:00
parent 04dc2468f7
commit 4b7a07b5cf
20 changed files with 129 additions and 127 deletions

View File

@@ -50,7 +50,7 @@ public class SimulationModelResource : SimulationModel
SetBubble($"{data.claimers}/{data.original_capacity}");
if (currentBubble)
{
currentBubble.SetDetail(data, logicType.resource, FindAnyObjectByType<LogicUIManager>().itemMap[nodeID].Label);
currentBubble.SetDetail(data, logicType.resource, LogicUIManager.instance.GetItemLabelByID(nodeID));
}
}
@@ -86,6 +86,7 @@ public class SimulationModelResource : SimulationModel
currentBubble = Instantiate(bubbleUIPrefab, FindAnyObjectByType<Canvas_Bubble>().transform);
currentBubble.target = DataBubbleSocket;
currentBubble.worldOffset = new Vector3(0, 2.0f, 0); // 필요에 따라 조절
currentBubble.GetComponent<RectTransform>().SetAsFirstSibling();
}
// 텍스트 갱신
currentBubble.SetMessage(msg);