Пример #1
0
 public static bool SendFriendListMessage(FriendListType friendListType)
 {
     bool isOutOfDate = false;
     switch (friendListType)
     {
         case FriendListType.LoadingAll:
             {
                 isOutOfDate = FriendModelLocator.Instance.IsFriendListOutOfDate(FriendListType.LoadingAll);
                 if (isOutOfDate)
                 {
                     var msg = new CSFriendLoadingAll();
                     NetManager.SendMessage(msg);
                 }
                 break;
             }
         case FriendListType.Apply:
             {
                 isOutOfDate = FriendModelLocator.Instance.IsFriendListOutOfDate(FriendListType.Apply);
                 if (isOutOfDate)
                 {
                     var msg = new CSFriendApplyList();
                     NetManager.SendMessage(msg);
                 }
                 break;
             }
         case FriendListType.Receive:
             {
                 isOutOfDate = FriendModelLocator.Instance.IsFriendListOutOfDate(FriendListType.Receive);
                 if (isOutOfDate)
                 {
                     var msg = new CSFriendRecieveEnergyList();
                     NetManager.SendMessage(msg);
                 }
                 break;
             }
     }
     return isOutOfDate;
 }
Пример #2
0
    private void GotoBtnHandler(GameObject obj)
    {
        if (questInfo.Status != 0) return;

        WindowManager.Instance.Show<TaskWindow>(false);
        switch (questTemp.LinkWin)
        {
            case 1:
            case 2:
            case 3:
                MissionModelLocator.Instance.ShowRaidWindow(questTemp.LinkWin);
                break;
            case 4://武将界面
                MainMenuBarWindow.OpenHeroWin();
                break;
            case 5://装备界面
                MainMenuBarWindow.OpenEquipWin();
                break;
            case 6://编队
                MainMenuBarWindow.OpenTeamWin();
                break;
            case 7://好友
                var msg = new CSFriendLoadingAll();
                NetManager.SendMessage(msg);
                break;
            case 8://抽卡
                WindowManager.Instance.Show<ChooseCardWindow>(true);
                break;
            default:
                break;
        }
    }