E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/chart/ChartManager.cs

45 lines
1.6 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class ChartManager : MonoBehaviour
{
public GameObject ;
//public TMP_Dropdown 地区;
public Dropdown ;
public Dropdown ;
public Dropdown ;
public GameObject content;
//public List<chartbase> chartbases = new List<chartbase>();
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void () {
var load = Resources.Load("Prefab/条目");
Debug.Log(load);
GameObject = Instantiate(load) as GameObject;
.transform.SetParent(content.transform);
.transform.localScale = new Vector3(1, 1, 1);
.transform.localPosition = new Vector3(0, 0, 0);
.transform.localEulerAngles = new Vector3(0, 0, 0);
//条目.GetComponent<chartbase>().地区.text = 地区.options[地区.value].text;
//条目.GetComponent<chartbase>().地区_value = 地区.value;
.GetComponent<chartbase>()..text = .options[.value].text;
.GetComponent<chartbase>()._value = .value;
.GetComponent<chartbase>()..text = .options[.value].text;
.GetComponent<chartbase>()._value = .value;
.GetComponent<chartbase>()..text = .options[.value].text;
.GetComponent<chartbase>()._value = .value;
//chartbases.Add(条目.GetComponent<chartbase>());
}
}