Esempio n. 1
0
    CommandCallbackType ConfirmMatchindHandle(byte[] dataBuffer, int socketID)
    {
        SMsgConfirmMatching_SC sMsgConfirmMatching_SC = SMsgConfirmMatching_SC.ParsePackage(dataBuffer);

        UIEventManager.Instance.TriggerUIEvent(UIEventType.CrusadeMatching, sMsgConfirmMatching_SC);
        return(CommandCallbackType.Continue);
    }
Esempio n. 2
0
        void ReceiveCrusadeMatchingHandle(object obj)
        {
            if (!CrusadeManager.Instance.IsMatchingEctype)
            {
                return;
            }
            SMsgConfirmMatching_SC sMsgConfirmMatching_SC = (SMsgConfirmMatching_SC)obj;

            if (MatchingPanel == null)
            {
                GameObject matchingPanel = UI.CreatObjectToNGUI.InstantiateObj(CrusadeMatchingPanelPrefab, transform);
                MatchingPanel = matchingPanel.GetComponent <CrusadeMatchingPanel>();
            }
            MatchingPanel.CrusadeMatching(sMsgConfirmMatching_SC);
        }
Esempio n. 3
0
    public void CrusadeMatching(SMsgConfirmMatching_SC sMsgConfirmMatching_SC)
    {
        var ectypeConfig      = EctypeConfigManager.Instance.EctypeContainerConfigList[sMsgConfirmMatching_SC.dwEctypeContainerID];
        var ectypeSelectCofig = EctypeConfigManager.Instance.EctypeSelectConfigList[EctypeConfigManager.Instance.GetSelectContainerID(sMsgConfirmMatching_SC.dwEctypeContainerID)];

        if (m_matchingEctypeItem != null)
        {
            Destroy(m_matchingEctypeItem);
        }
        m_matchingEctypeItem    = UI.CreatObjectToNGUI.InstantiateObj(ectypeSelectCofig._EctypeIconPrefab, RandomEctypeItemPoint);
        Label_randomEctype.text = string.Format(LanguageTextManager.GetString("IDS_I19_26"),
                                                LanguageTextManager.GetString(ectypeConfig.lEctypeName));
        m_matchingConfirmTime   = CommonDefineManager.Instance.CommonDefine.Match_Delay;
        Label_cutdownTime.text  = m_matchingConfirmTime.ToString();
        transform.localPosition = Vector3.zero;
        InvokeRepeating("MatchingConfirmCutDown", 1f, 1f);
    }