using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class WarCommuniqueToggle : BaseToggle { public GameObject OverAllReportPanel; public GameObject EventPanel; void Awake() { //OverAllReportPanel = GameObject.Find("OverAllReportPanel"); //EventPanel = GameObject.Find("EventPanel"); } private void Start() { OverAllReportPanel.SetActive(false); EventPanel.SetActive(false); } public override void RespondFun(bool value) { OverAllReportPanel.SetActive(value); EventPanel.SetActive(value); //transform.Find("Image").gameObject.SetActive(value); } }