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

31 lines
1001 B

using AX.MessageSystem;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 疏散救生面板
/// </summary>
public class RescueInfoPanel : MonoBehaviour {
public ButtonRecordByAC CloseButton;
// Use this for initialization
void Awake () {
MessageDispatcher.AddListener(FireInfoMessage.EvacuationAndRescue.ToString(), OpenPanel);
CloseButton = transform.Find("HeadTitleBG/CloseButton").GetComponent<ButtonRecordByAC>();
CloseButton.OutInterFaceButton = closeClick;
gameObject.SetActive(false);
}
private void OnDestroy()
{
MessageDispatcher.RemoveListener(FireInfoMessage.EvacuationAndRescue.ToString(), OpenPanel);
}
private void closeClick()
{
MessageDispatcher.SendMessage("CloseFireInfoPanel", (int)FireInfoMessage.EvacuationAndRescue);
}
void OpenPanel(IMessage obj)
{
var value = (bool)obj.Data;
gameObject.SetActive(value);
}
}