Exemplo n.º 1
0
    /// <summary>匹配成功收到</summary>
    /// <param name="data"></param>
    public void OnRec_RoomInfoMsg(object data)
    {
        RoomInfoMsg msg = data as RoomInfoMsg;

        RoomInfo = msg;

        SendNotification(NotificationID.VSLoadingOpen, msg);
        GameProxy.Instance.GoToPVP();

        Debug.Log("OnRec_RoomInfoMsg");
    }
Exemplo n.º 2
0
    protected override void OnShow(INotification notification)
    {
        msg = notification.Body as RoomInfoMsg;

        SendNotification(NotificationID.MainClose);

        TimerManager.AddTimerRepeat(mKeyLoadingPerKey, 0.01f, OnTimer_SendLoadingPer);

        UIEventListener.Get(m_Panel.gameObject).onClick = OnClick_Panel;

        mBox = m_Panel.GetComponent <BoxCollider>();

        mStopSendLodingPer            = false;
        mLoadingMapComplete           = false;
        mOtherLoadingComplete         = false;
        m_Panel.teamALoadingBar.value = 0;
        m_Panel.teamBLoadingBar.value = 0;

        UpdateDisplay();
    }