bubblecomplete
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user