public void LoadObject() { ObjectToFill = UIProperties.ActiveObject.GetComponent <standardDataHelper>(); standardObjectDatas = ObjectToFill.getChilderen(); currentStandardDataObject = 0; StartCoroutine(DownloadMenuItems(standardObjectDatas[currentStandardDataObject].type)); }
public void EmptyMenu() { currentPageNumber = 0; for (var j = menuItems.Count; j > 0; j--) { Destroy(menuItems[j - 1]); menuItems.Remove(menuItems[j - 1]); } ObjectToFill = null; UIProperties.ActiveObject = null; gameObject.SetActive(false); }