names in toolbar

This commit is contained in:
klemek
2020-12-17 10:58:34 +01:00
parent 1a70942e8e
commit ca145550fb
88 changed files with 13718 additions and 62 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ namespace UntitledLogicGame.UI
{
var uiGate = Instantiate(UIGatePrefab, GateBar.transform);
uiGate.GatePrefab = gatePrefab;
uiGate.RectTransform.anchoredPosition = new Vector2(currentPos, 0);
currentPos += uiGate.RectTransform.sizeDelta.x;
uiGate.GetComponent<RectTransform>().anchoredPosition = new Vector2(currentPos, 0);
currentPos += 100f;
}
MovingBar.SetActive(false);