28 lines
700 B
C#
28 lines
700 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class AssignmentSon : UIController
|
|
{
|
|
public SelectPanel selectPanel;
|
|
public GameObject g1;
|
|
[SerializeField] TextMeshProUGUI text;
|
|
[SerializeField] Image BG;
|
|
public string path;
|
|
public string name;
|
|
private void Start()
|
|
{
|
|
text.text = name;
|
|
UIManager.ins.LoadImageAsync(path,BG,false);
|
|
transform.GetComponent<Button>().onClick.AddListener(() =>
|
|
{
|
|
selectPanel.gameObject.SetActive(true);
|
|
g1.SetActive(false);
|
|
selectPanel.init();
|
|
selectPanel.g1 = g1;
|
|
});
|
|
}
|
|
}
|