public void Enter() { gameObject.SetActive(true); m_Enter = true; transform.localPosition = new Vector3(640, 0, 0); Sequence s = DOTween.Sequence(); s.Append(transform.DOLocalMoveX(30, 0.2f)); s.Append(transform.DOLocalMoveX(0, 0.2f)); s.Play(); CloseRoomInfo(); ClearCareerRecord(); Pie7Day.gameObject.SetActive(false); Pie30Day.gameObject.SetActive(false); PieAllDay.gameObject.SetActive(false); Pie7Day.transform.DORotate(new Vector3(0, 0, 0), 0); Pie30Day.transform.DORotate(new Vector3(0, 0, 0), 0); PieAllDay.transform.DORotate(new Vector3(0, 0, 0), 0); Transform Content = transform.Find("Pies/Scroll View/Viewport/Content"); for (int i = Content.Find("PieScroll7/Win").childCount - 1; i >= 0; i--) { Destroy(Content.Find("PieScroll7/Win").GetChild(i).gameObject); } for (int i = Content.Find("PieScroll7/Lost").childCount - 1; i >= 0; i--) { Destroy(Content.Find("PieScroll7/Lost").GetChild(i).gameObject); } for (int i = Content.Find("PieScroll30/Win").childCount - 1; i >= 0; i--) { Destroy(Content.Find("PieScroll30/Win").GetChild(i).gameObject); } for (int i = Content.Find("PieScroll30/Lost").childCount - 1; i >= 0; i--) { Destroy(Content.Find("PieScroll30/Lost").GetChild(i).gameObject); } for (int i = Content.Find("PieScrollAll/Win").childCount - 1; i >= 0; i--) { Destroy(Content.Find("PieScrollAll/Win").GetChild(i).gameObject); } for (int i = Content.Find("PieScrollAll/Lost").childCount - 1; i >= 0; i--) { Destroy(Content.Find("PieScrollAll/Lost").GetChild(i).gameObject); } List <uint> days = new List <uint> (); days.Add(7); days.Add(30); days.Add(365); LobbyController.CareerWinLostServer(days); m_CareerIndex = 0; m_CareerCount = 4; LobbyController.CareerRecordsServer(Common.ConfigCareerDays, m_CareerIndex, m_CareerCount); }