Beispiel #1
0
    void OnReceivedBuildingData(byte[] msg)
    {
        BuildingDataPacket buildingDataPacket = new BuildingDataPacket(msg);
        BuildingData       buildingData       = buildingDataPacket.GetData();

        dataManager.SetBuildingData(buildingData);
        if (loadingManager.CurrentScene == GameManager.Scene.Loading)
        {
            loadingManager.dataCheck[(int)ServerPacketId.BuildingData - 4] = true;
        }
        else if (loadingManager.CurrentScene == GameManager.Scene.Wait)
        {
            uiManager.BuildingUIManager.SetBuilding();
        }
    }