private void Awake() { listView.Initialize(null, ((RectTransform)listItemPrefab.transform).sizeDelta.y); listView.OnBindItem += OnBindListItem; listView.OnCreateItem = OnCreateListItem; gameObject.SetActive(false); }
private void Awake() { listView.OnCreateItem = OnCreateListItem; listView.OnBindItem += OnBindListItem; listView.Initialize(null, ((RectTransform)levelToggle.transform).sizeDelta.y); loadButton.onClick.AddListener(ClickLoadLevel); closeButton.onClick.AddListener(Close); if (saveManager != null) { SaveManager = saveManager.NeedComponent <ILevelEditorSaveManager>(); } ValidateLoadButton(); }