BladeServerItem.cs 432 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class BladeServerItem : MonoBehaviour
  6. {
  7. public int id;
  8. public Text text;
  9. public GameObject ui;
  10. public void init(int id )
  11. {
  12. this.id = id;
  13. text.text = "ID: "+id.ToString();
  14. // SettingUI(false);
  15. }
  16. public void SettingUI(bool state)
  17. {
  18. ui.SetActive(state);
  19. }
  20. }