You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DragCheck : MonoBehaviour
{
public List<GameObject> ItemList = new List<GameObject>();
public bool isMainAear = false;
private void Start()
{
if (isMainAear)
{
this.GetComponent<Image>().color = Color.green;
this.transform.GetChild(0).GetComponent<Image>().color = Color.green;
}
else
{
this.GetComponent<Image>().color = Color.white;
this.transform.GetChild(0).GetComponent<Image>().color = Color.white;
}
}
public void ShowItem()
{
//显示探测器设备模型
for (int i = 0; i < ItemList.Count; i++)
{
ItemList[i].SetActive(true);
this.gameObject.SetActive(false);
if (GameManagerForZhuanWan.Instance != null)
{
GameManagerForZhuanWan.Instance.RegisetItem(this.gameObject.name, this);
}
}
}
}