_xiaofang/xiaofang/Assets/Script/UI/PersonnelItem.cs

33 lines
597 B
C#
Raw Normal View History

2024-11-29 09:44:45 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PersonnelItem : MonoBehaviour
{
public Text sceneText;
public Image personnelImage;
public Text personnelNum;
2024-12-10 08:05:28 +08:00
public int sceneId;
public int Num = 0;
2024-12-13 20:17:37 +08:00
public int NpcNum = 0;
2024-12-17 17:04:12 +08:00
public int isHere;
2024-11-29 09:44:45 +08:00
// Start is called before the first frame update
void Start()
{
}
2024-12-02 01:46:57 +08:00
public void SetInfo(string s)
{
2024-12-13 20:17:37 +08:00
personnelNum.text = s.ToString();
2024-12-02 01:46:57 +08:00
}
2024-11-29 09:44:45 +08:00
// Update is called once per frame
void Update()
{
}
}