Beispiel #1
0
    public void IsHaveUserMail(UserMailState state)
    {
        switch (state)
        {
        case UserMailState.NoMail:
            _noMail.SetActive(true);
            _aKeyToGetBtn.gameObject.SetActive(false);
            _aKeyToDeleteBtn.gameObject.SetActive(false);
            break;

        case UserMailState.HaveAttachment:
        case UserMailState.NoAttachment:
            _noMail.SetActive(false);
            _aKeyToGetBtn.gameObject.SetActive(true);
            _aKeyToDeleteBtn.gameObject.SetActive(true);
            break;
        }
    }
Beispiel #2
0
 public void SetUserMailState()
 {
     if (UserMails.Count == 0)
     {
         UserMailState = UserMailState.NoMail;
     }
     else
     {
         foreach (var t in UserMails)
         {
             if (t.IsHaveAttachment == IsHaveAttachment.Yes)
             {
                 UserMailState = UserMailState.HaveAttachment;
                 break;
             }
             else
             {
                 UserMailState = UserMailState.NoAttachment;
             }
         }
     }
 }
Beispiel #3
0
 public void SetData(UserMailState state, List <UserMailVO> list)
 {
     IsHaveUserMail(state);
     CreateUserMailItem(list);
 }