12345678910111213141516171819202122232425262728293031323334 |
- using System.Collections;
- using System.Collections.Generic;
- using System.Data;
- using UnityEngine;
- using UnityEngine.UI;
- public class ImportBtn : MonoBehaviour
- {
- public Button button;
- public Image image;
- public Image arrow;
- public Text text;
- public XHGKLayerData data1;
- void Start()
- {
- }
- public void OnInit(XHGKLayerData data)
- {
- text.text = data.title;
- data1 = data;
- }
- public void OnActive(bool active) {
- image.color = active ? Color.white : Color.clear;
- arrow.gameObject.SetActive(active);
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
|