网上演练贵港万达广场(人员密集)
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.
 
 
 

53 lines
1.8 KiB

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using AX.MessageSystem;
using UnityEngine.UI;
public class XFSSShowOrHide : BaseToggle
{
private void Start()
{
XFSS[] xfsshas = GameObject.Find("SceneAll").GetComponentsInChildren<XFSS>(true);
List<string> type = new List<string>();
for (int i = 0; i < xfsshas.Length; i++)
{
if (!type.Contains(xfsshas[i].type.ToString()))
{
type.Add(xfsshas[i].type.ToString());
}
}
for (int i = 0; i < type.Count; i++)
{
if (!type.Contains(transform.Find("Label").GetComponent<Text>().text))
{
gameObject.SetActive(false);
}
}
}
public override void RespondFun(bool value)
{
string XFSSTyepe = transform.Find("Label").GetComponent<Text>().text;
if (XFSSTyepe == XFSSType..ToString())
{
MessageDispatcher.SendMessage("HIDEORSHOW", new KeyValuePair<XFSSType, bool>(XFSSType., value));
}
else if (XFSSTyepe == XFSSType..ToString())
{
MessageDispatcher.SendMessage("HIDEORSHOW", new KeyValuePair<XFSSType, bool>(XFSSType., value));
}
else if (XFSSTyepe == XFSSType..ToString())
{
MessageDispatcher.SendMessage("HIDEORSHOW", new KeyValuePair<XFSSType, bool>(XFSSType., value));
}
else if (XFSSTyepe == XFSSType..ToString())
{
MessageDispatcher.SendMessage("HIDEORSHOW", new KeyValuePair<XFSSType, bool>(XFSSType., value));
}
else if (XFSSTyepe == XFSSType..ToString())
{
}
}
}