12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class BladeServerItem : MonoBehaviour
- {
- public int id;
- public Text text;
- public GameObject ui;
- public void init(int id )
- {
- this.id = id;
- text.text = "ID: "+id.ToString();
- // SettingUI(false);
- }
- public void SettingUI(bool state)
- {
- ui.SetActive(state);
- }
- }
|