Exemplo n.º 1
0
    public void ResponseButton_Attend()
    {
        // 출첵팝업
        UI_Popup_Attendace popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Attendace>(UIPOPUP.POPUPATTENDANCE);

        popup.Set_RwdInfo(UserDataManager.instance.user.Get_user_goods(ITEMTYPE.ATDDAY));
    }
Exemplo n.º 2
0
    //일일출첵관련 팝업
    void ShowPopup_AttendDay()
    {
        User     _user          = UserDataManager.instance.user;
        GainItem AttendGainItem = null;

        if (webResponse.GetResultGainItem(ITEMTYPE.ATDDAY, ref AttendGainItem))
        {
            DateTime nowTime = TimeManager.Instance.Get_nowTime();
            DateTime _mtime  = AttendGainItem.mtime;
            _mtime.AddDays(1);

            if (_mtime.Year <= nowTime.Year)
            {
                if (_mtime.Month <= nowTime.Month)
                {
                    if (_mtime.Day <= nowTime.Day)
                    {
                        // 출첵팝업
                        UI_Popup_Attendace popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Attendace>(UIPOPUP.POPUPATTENDANCE);
                        popup.Set_RwdInfo(AttendGainItem.num, UI_Popup_Attendace.AttendRwd_Type.AttdToday);
                    }
                }
            }
        }

        //소식관련 마크 처리
        if (_user.MarkChanges.ContainsKey(MarkTitleType.NewsCount))
        {
            Lst_Mark[(int)MarkTitleType.NewsCount].SetActive(_user.MarkChanges[MarkTitleType.NewsCount]);
        }
    }