Пример #1
0
    public override void buttonEventBase(GameObject gameObj)
    {
        base.buttonEventBase(gameObj);

        switch (gameObj.name)
        {
        case "close":
            CACHE_LIST = null;
            finishWindow();
            if (fatherWindow is FriendsWindow)
            {
                (fatherWindow as FriendsWindow).loadData();
            }
            break;

        case "buttonRecommend":
            FriendsManagerment.Instance.clearRecommendFriends();
            FriendsFPort fport = FPortManager.Instance.getFPort("FriendsFPort") as FriendsFPort;
            fport.recommendFriend(callBackByFind);
            break;

        case "button_id":
            mFindType = 1;
            updateFindTypeStatus();
            break;

        case "button_name":
            mFindType = 0;
            updateFindTypeStatus();
            break;

        case "buttonFind":
            if (inputFind.value.Replace(" ", "") == "" || inputFind.value == null)
            {
                UiManager.Instance.createMessageWindowByOneButton(LanguageConfigManager.Instance.getLanguage("Friend_InputNull"), null);
                return;
            }
            FriendsManagerment.Instance.clearRecommendFriends();
            findFriend();
            break;
        }
    }
Пример #2
0
    //获取推荐好友端口
    public void getRecommendFrind()
    {
        FriendsFPort fport = FPortManager.Instance.getFPort("FriendsFPort") as FriendsFPort;

        fport.recommendFriend(callBackByFind);
    }