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

25 lines
759 B

4 years ago
using AX.MessageSystem;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class QuadrupleMode : BaseToggle {
public GameObject OneView;
public GameObject FourView;
public static bool quadingMode = false; //指示四分屏是否开启
void Awake()
{
OneView = transform.parent.Find("OneRawImage").gameObject;
FourView = transform.parent.Find("FourRawImage").gameObject;
FourView.SetActive(false);
}
public override void RespondFun(bool value)
{
OneView.SetActive(!value);
FourView.SetActive(value);
quadingMode = value;
MessageDispatcher.SendMessage("QuadrupleMode", value);
}
}