using AX.MessageSystem; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class ToolsPanelManager : MonoBehaviour { private Transform MovePanel; private UIMoveManager moveManager; private Toggle MyToggle; private WeatherSettingManager weatherSettingManager; private Toggle weatherToggle; private Button TeamNameBtn; private Toggle ShowNameToggle; private Button ClearAllBtn; private Button backScene; private float timmer; private void Start() { MovePanel = transform.Find("MovePanel"); moveManager = MovePanel.GetComponent(); MovePanel.GetComponent().Init(); MyToggle = transform.parent.Find("ToolsToggle").GetComponent(); MyToggle.onValueChanged.AddListener(MyToggleValueChanged); moveManager.SetMoving(); weatherSettingManager = GameObject.Find("Canvas").transform.Find("WeatherSettingPanel").GetComponent(); weatherToggle = MovePanel.Find("SettingToggle").GetComponent(); weatherToggle.onValueChanged.AddListener(weatherToggleValueChanged); weatherSettingManager.Init(weatherToggle); TeamNameBtn = MovePanel.Find("TeamNameBtn").GetComponent