TestDownload.cs 665 B

123456789101112131415161718192021222324252627
  1. using LitJson;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class TestDownload : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. SendMaterials sendModel = new SendMaterials();
  11. sendModel.url = "nav2_resources_test9903/viewpoint281/material/mrhall";
  12. string jsonModel = JsonMapper.ToJson(sendModel);
  13. HttpTool.Instance.PostBundle(null, "/cdn/download", 11, jsonModel, CallBack);
  14. }
  15. public void CallBack(DownLoadMaterial mObj, object value)
  16. {
  17. }
  18. // Update is called once per frame
  19. void Update()
  20. {
  21. }
  22. }