_xiaofang/xiaofang/Assets/Res/gsj/scripts/ItemInfo.cs

29 lines
574 B
C#
Raw Normal View History

2024-12-20 10:10:19 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class ItemInfo : MonoBehaviour
{
public string status;
public int accountName;
public UnityEvent statusChanged; // <20><><EFBFBD><EFBFBD>״̬<D7B4><EFBFBD>¼<EFBFBD>
// Start is called before the first frame update
void Start()
{
}
public void SetStatus(string newStatus)
{
status = newStatus;
statusChanged.Invoke(); // <20><>״̬<D7B4>ı<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>
}
// Update is called once per frame
void Update()
{
}
}