using System.Collections; using System.Collections.Generic; using DG.Tweening; using UnityEngine; using UnityEngine.UI; public class NavPanel : Anim { public static NavPanel instance; [Header("Panel")] public GameObject MainGameObject; public GameObject TeamGameObject; public GameObject JourneygGameObject; public GameObject BPGameObject; public GameObject GuildGameObject; public GameObject WorldHomegGameObject; [Header("°´Å¥")] public GameObject ReGameObject; public Button SHopButton; public Button TeanButton; public Button GonhuiButton; public Button WorldHomeButton; GameObject item=null; // Start is called before the first frame update void Start() { instance= this; ReGameObject.SetActive(false); TeamGameObject.SetActive(false); TeanButton.onClick.AddListener(() => { CloseMain(); TeamGameObject.GetComponent().Backchild(); TeamGameObject.SetActive(true); item = TeamGameObject; //TeamGameObject.transform.DOMoveY(1400, 1f); }); ReGameObject.GetComponent