void Awake() { startScaleCellBlock = panelGO[2].GetComponent <RectTransform>().sizeDelta.x; imagePanelGO = new Image[panelGO.Length]; textPanelGO = new Text[panelGO.Length]; for (int i = 0; i < panelGO.Length; i++) { imagePanelGO[i] = panelGO[i].transform.Find("Image").GetComponent <Image>(); textPanelGO[i] = panelGO[i].transform.GetComponentInChildren <Text>(); } defaultSprite = imagePanelGO[1].sprite; if (_inteface != null) { return; } _inteface = this; }
void Start() { interfaceScript = IntefaceControl._inteface; cg = intventoryGO.transform.GetComponent <CanvasGroup>(); }