Example #1
0
    /// <summary>发送加载进度</summary>
    /// <param name="per"></param>
    public void SendRoomLoading(int per)
    {
        RoomLoadMsg msg = new RoomLoadMsg();

        msg.load = per;

        NSocket.GetInstance().SendData(Request.RoomLoadReq, msg);
    }
Example #2
0
    public void OnRec_RoomLoadMsg(object data)
    {
        RoomLoadMsg msg = data as RoomLoadMsg;

        Debug.Log("OnRec_RoomLoadMsg:" + msg.load);

        SendNotification(NotificationID.VSLoading_Per, msg);
    }
Example #3
0
    private void OnRec_LoadingPer(INotification noti)
    {
        RoomLoadMsg msg = noti.Body as RoomLoadMsg;

        int per = (int)GUIManager.LoadingScenePer;

        mOtherLoadingComplete = per == 100 ? true : false;

        if (IsTeamA == E_VSPanelSide.TeamA)
        {
            m_Panel.teamALoadingBar.value = per;
        }
        else if (IsTeamA == E_VSPanelSide.TeamB)
        {
            m_Panel.teamBLoadingBar.value = per;
        }

        Debug.Log("OnRec_LoadingPer");
    }