1234567891011121314151617181920212223242526 |
- using ShadowStudio.Model;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ZiYuanFileList : MonoBehaviour
- {
- public GameObject ZiYuanFileView;
-
- public void AddFileItem(ArtInfo artInfo)
- {
- GameObject obj = Instantiate(ZiYuanFileView, transform) as GameObject;
- obj.transform.GetComponent<ZiYuanFileView>().Init(artInfo);
- }
- public void DestoryAll()
- {
- if (transform.childCount > 0)
- {
- for (int i = 0; i < transform.childCount; i++)
- {
- Destroy(transform.GetChild(i).gameObject);
- }
- }
- }
- }
|