using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XFrame.Core.UI; using XFrame.Core.Tool; using UnityEngine.EventSystems; using DG.Tweening; using System; namespace YHElectric { public class IndexPanel : XUIPanel { static Transform monitor; static Transform function; static Transform strategy; private static float monitorTransX; private static float functionTransY; private static float strategyTransX; public static Text tempTxt; public static GameObject introduction; public IndexPanel() : base(UIType.Fixed, UIMode.None, UICollider.None) { uiPath = "UI/UIPanelPrefab/IndexPanel"; } public override void Awake(GameObject go) { tempTxt = transform.Find("Bg/temp").GetComponent(); introduction = transform.Find("Bg/introduction").gameObject; monitor = transform.Find("Bg/monitor"); function = transform.Find("Bg/function"); strategy = transform.Find("Bg/strategy"); monitorTransX = monitor.GetChild(0).GetChild(0).GetComponent().position.x; strategyTransX = strategy.GetChild(0).GetChild(0).GetComponent().position.x; functionTransY = function.GetComponent().position.y; //transform.Find("Bg/fhyc").GetComponent