void OnDestroy() { m_pPvPScrollScript.Destroy(); m_pPvPScrollScript = null; Destroy(m_pMainPvpScript); m_pMainPvpScript = null; Destroy(m_pMyPanel); m_pMyPanel = null; for (int i = 0; i < m_pRightAni.Length; i++) { Destroy(m_pRightAni[i]); m_pRightAni[i] = null; } }
void Start() { if (JAManager.I != null) { JAManager.I.m_nPvpFriendTableSelect = 0; } m_pPvPScrollScript = GameObject.Find("Scroll_Offset").transform.FindChild("prf_PvPFriendScrollPop(Clone)").GetComponent <JAPvPFriendScrollMainScript>(); m_pMainPvpScript = GameObject.Find("Panel_Popup/Pop_Offset/prf_PvPMenu(Clone)").GetComponent <JAPvPMenuMainScript>(); m_pRightAni[2].Play("prf_PvP_FriendPopBoxStart"); m_pRightAni[0].Play("prf_PvP_FriendPopBackStart"); m_pRightAni[1].Play("prf_PvP_FriendPopOKStart"); m_pRightAni[3].Play("prf_PvP_FriendPopTopStart"); m_eState = eState.E_STATE_PANEL_ALPHA_START; m_pPvPScrollScript.Enter(); }