| 12345678910111213141516171819202122232425262728293031 | using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class YearBtn : MonoBehaviour{    public bool defaultActive = false;    public Text normalDig;    public Text activeDig;    public Text yearSign;    public float heightY;    // Start is called before the first frame update    void Start()    {        OnActive(defaultActive);    }    public void OnActive(bool active) {        normalDig.gameObject.SetActive(!active);        activeDig.gameObject.SetActive(active);        yearSign.gameObject.SetActive(active);    }    // Update is called once per frame    void Update()    {            }}
 |