24 lines
555 B
C#
24 lines
555 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using TMPro;
|
|
|
|
public class AggregateStation : MonoBehaviour
|
|
{
|
|
|
|
public SpriteRenderer instruct;
|
|
public TMP_Text instructInfo;
|
|
public bool isHaveValue;
|
|
public void SetInfo(Sprite stationIcon, string num)
|
|
{
|
|
instruct.sprite = stationIcon;
|
|
instructInfo.text = num;
|
|
}
|
|
public void SetInfo(string num)
|
|
{
|
|
instructInfo.text = num;
|
|
gameObject.SetActive(num != "0");
|
|
isHaveValue = num != "0" ? true : false;
|
|
}
|
|
}
|