using AX.MessageSystem; using AX.NetworkSystem; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ForciblePanel : BaseAttributeSet { private SliderRecordByAC SliderHight; private SliderRecordByAC SliderWidth; private ButtonRecordByAC Sure; private ButtonRecordByAC Cancel; private GameObject selectObjLast; private static ForciblePanel instance; public static ForciblePanel Instance { get { if (instance == null) { GameObject obj = Resources.Load("Common/ForciblePanel"); GameObject clone = Instantiate(obj, GameObject.Find("Canvas").transform); clone.transform.SetAsLastSibling(); clone.name = "ForciblePanel"; clone.transform.position = Vector3.zero; instance = clone.GetComponent(); instance.Init(); } return instance; } } void Init() { SliderHight = transform.Find("SliderHight").GetComponent(); SliderWidth = transform.Find("SliderWidth").GetComponent(); Sure = transform.Find("SureButton").GetComponent(); Cancel = transform.Find("CancelButton").GetComponent(); SliderHight.OutInterFaceSlider = SliderHightChange; SliderWidth.OutInterFaceSlider = SliderWidthChange; Sure.OutInterFaceButton = SureClick; Cancel.OutInterFaceButton = CancelClick; } public override void OnDisable() { base.OnDisable(); Close(); } public override void OpenPanel() { base.OpenPanel(); LoadUIDisaster(); gameObject.SetActive(true); } private void LoadUIDisaster() { if (GameSettings.othersSettings.isSelectedDisaster) { if (GameSettings.othersSettings.mode != Mode.DisasterManagement) {//若是练习或演习模式进入导调组界面,则不可以修改 //Minput.GetComponent().interactable = false; //Sinput.GetComponent().interactable = false; //Sure.GetComponent