Ejemplo n.º 1
0
    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();

        m_TogSent.isOn     = true;
        m_TogReceived.isOn = true;

        transform.Find("SelfInfo/Diamonds/Icon").gameObject.SetActive(false);
        m_DiaAmount.gameObject.SetActive(false);

        ClearDiamondRecord();
        HideCalendar();

        LobbyControl.GetProfileServer();

        DateTime d1 = DateTime.Now;
        DateTime d2 = d1.AddDays(-7);

        m_EndDate   = d1.Year + "-" + d1.Month + "-" + d1.Day;
        m_BeginDate = d2.Year + "-" + d2.Month + "-" + d2.Day;
        HideCalendar();
        LobbyControl.DiamondsRecordsServer(m_BeginDate, m_EndDate);
    }