Commit bf86de63 authored by 18류지석's avatar 18류지석

인벤토리에 콤보 미간이 클릭할때마다 넓어지는 버그 수정

parent f1f2c0ff
...@@ -113,8 +113,8 @@ public class InventoryUI : MonoBehaviour { ...@@ -113,8 +113,8 @@ public class InventoryUI : MonoBehaviour {
comboChars[i, j].SetActive(true); comboChars[i, j].SetActive(true);
comboChars[i, j].GetComponent<Image>().sprite = comboCharPrefab[itemList[selectedItem].combo[i][j] - 'A'].GetComponent<Image>().sprite; comboChars[i, j].GetComponent<Image>().sprite = comboCharPrefab[itemList[selectedItem].combo[i][j] - 'A'].GetComponent<Image>().sprite;
comboChars[i, j].GetComponent<RectTransform>().sizeDelta = comboCharPrefab[itemList[selectedItem].combo[i][j] - 'A'].GetComponent<RectTransform>().sizeDelta; comboChars[i, j].GetComponent<RectTransform>().sizeDelta = comboCharPrefab[itemList[selectedItem].combo[i][j] - 'A'].GetComponent<RectTransform>().sizeDelta;
comboChars[i, j].GetComponent<RectTransform>().localPosition += new Vector3(tmpx, 0, 0); comboChars[i, j].GetComponent<RectTransform>().localPosition = new Vector3(tmpx, 0, 0);
tmpx += comboChars[i, j].GetComponent<RectTransform>().sizeDelta.x + pixelBetweenChar; tmpx = comboChars[i, j].GetComponent<RectTransform>().sizeDelta.x + pixelBetweenChar;
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment