35 lines
803 B
C#
35 lines
803 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class DistributionPanel : MonoBehaviour
|
|
{
|
|
public GameObject personnelLable;
|
|
public Transform personnelContent;
|
|
public Panel panel;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
public void OnClickPeopleWindows()
|
|
{
|
|
foreach(Transform child in personnelContent)
|
|
{
|
|
Destroy(child.gameObject);
|
|
}
|
|
}
|
|
public void CreateFirstLable()
|
|
{
|
|
GameObject fistLable = Instantiate<GameObject>(personnelLable, personnelContent);
|
|
PersonnelInfo personnelItem = fistLable.GetComponent<PersonnelInfo>();
|
|
}
|
|
}
|