Files
CreatGame/UnityGame/Assets/Scripts/GameLogic/UI/UILogic/Main/MainItem.cs

20 lines
402 B
C#
Raw Normal View History

2025-07-19 20:29:55 +08:00
using UnityEngine;
using UnityEngine.UI;
namespace CreatGame.UI
{
public class MainItem : MonoBehaviour
{
public Text text;
void ScrollCellIndex (int idx)
{
string name = "Cell " + idx.ToString ();
if (text != null)
{
text.text = name;
}
gameObject.name = name;
}
}
}