Beispiel #1
0
 public void ItemSelectedEventHandle(EmaiListItem selectedEquipItem)
 {
     SoundManager.Instance.PlaySoundEffect("Sound_Button_MailChoice");
     //所有项LoseFocus
     //SelectedItemID
     ItemList.ApplyAllItem(p => p.OnLoseFocus());
     selectedEquipItem.OnGetFocus();
     SelectedItemID = selectedEquipItem._EamilItem.llMailID;
     EmailDataManager.Instance.ReadEmail(selectedEquipItem._EamilItem.llMailID, selectedEquipItem._EamilItem.byEmailPage);
     EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail, EmaiSubPageStatus.EmailRead);
     //EmailInfoPanelManager.GetInstance().ChangeEmailPageStatus(EmailPageStatus.ShowEmail,EmaiSubPageStatus.EmailWrite);
 }
Beispiel #2
0
        private void SetItemData(GameObject go)
        {
            int index = int.Parse(go.name);

            if (index >= EmailList.Count)
            {
                return;
            }
            EmaiListItem Item = go.GetComponent <EmaiListItem>();

            Item.InitItemData(EmailList[index]);
            if (EmailList [index].llMailID == SelectedItemID)
            {
                Item.OnGetFocus();
            }
            else
            {
                Item.OnLoseFocus();
            }
        }