资源简介
Unity3d开发的微信跳一跳小游戏角色跳跃 相机跟随 台子自动生成死亡判定及重新开始游戏分数统计 色蓄力的粒子效果 角色蓄力效果 角色蓄力台子效果飘分效果 联网排行榜功能 翻倍加分功能
代码片段和文件信息
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.Types;
public class LeanCloudRestAPI
{
public string AppId { get; set; }
public string AppKey { get; set; }
private readonly string _baseUrl;
public LeanCloudRestAPI(string appId string appKey)
{
AppId = appId;
AppKey = appKey;
_baseUrl = BuildUrl(appId);
}
string BuildUrl(string appKey)
{
var prefix = appKey.Substring(0 8).ToLower();
return string.Format(“https://{0}.api.lncld.net“ prefix);
}
public IEnumerator Create(string className string json Action calback)
{
var url = _baseUrl + “/1.1/classes/“ + className;
using (var www = UnityWebRequest.Put(url json))
{
// Unity UnityWebRequest BUG
// see:https://forum.unity.com/threads/unitywebrequest-post-url-jsondata-sending-broken-json.414708/
www.method = “POST“;
www.SetRequestHeader(“Content-Type“ “application/json“);
www.SetRequestHeader(“X-LC-Id“ AppId);
www.SetRequestHeader(“X-LC-Key“ AppKey);
yield return www.SendWebRequest();
if (www.isNetworkError || www.isHttpError)
{
Debug.Log(www.downloadHandler.text);
}
else
{
calback();
}
}
}
public IEnumerator Query(string className Dictionaryject> parameters Action calback)
{
var url = _baseUrl + “/1.1/classes/“ + className + “?“;
var i = 0;
foreach (var o in parameters)
{
if (i != 0)
url += “&“;
url += o.Key + “=“ + o.Value;
i++;
}
using (var www = UnityWebRequest.Get(url))
{
www.SetRequestHeader(“X-LC-Id“ AppId);
www.SetRequestHeader(“X-LC-Key“ AppKey);
yield return www.SendWebRequest();
if (www.isNetworkError || www.isHttpError)
{
Debug.Log(www.downloadHandler.text);
}
else
{
calback(www.downloadHandler.text);
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-12 12:57 Unity-JumpJump-master\
目录 0 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\
文件 54 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\.gitignore
目录 0 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\
文件 213 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant.me
目录 0 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\
文件 213 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween.me
目录 0 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\
文件 188148 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween.xm
文件 192 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween.xm
文件 143872 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween.dll
文件 55846 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween.dll.mdb
文件 189 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween.dll.mdb.me
文件 369 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween.dll.me
文件 9728 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween43.dll
文件 1789 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween43.dll.mdb
文件 196 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween43.dll.mdb.me
文件 610 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween43.dll.me
文件 7080 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween43.xm
文件 199 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween43.xm
文件 20480 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween46.dll
文件 5901 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween46.dll.mdb
文件 196 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween46.dll.mdb.me
文件 610 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween46.dll.me
文件 23310 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween46.xm
文件 199 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween46.xm
文件 5632 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween50.dll
文件 796 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween50.dll.mdb
文件 196 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween50.dll.mdb.me
文件 610 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween50.dll.me
文件 6734 2018-06-12 12:57 Unity-JumpJump-master\JumpJump\Assets\Demigiant\DOTween\DOTween50.xm
............此处省略100个文件信息
相关资源
- 土地信息管理系统
- ServiceStack V3.9 全部dll
- PDF pdfview.ocx 无水印
- Unity纪念碑谷.rar
- Unity3d实现扭动挤压浏览效果
- Cocos2d-x开发游戏的坐标系知识介绍
- 无需共享打印机实现远程打印功能小
- unity案例入门坦克大战源码
- 《游戏中的数学与物理学 第2版》高清
- 3D数学基础:图形与游戏开发(习题答
- Unity3D游戏开发.pdf 宣雨松著完整高清
- Unity3D版水果忍者
- unity3d爆炸特效包
- unity3d_见缝插针源码及报告.zip
- 真正的破解版PDFView4NET
- 网页调用ActiveX控件获取串口数据
- Unity3d车库场景模型
- unity3d 警察动画模型
- unity3D 新手引导遮罩,支持圆形和矩形
- unity3d枪支武器包FPS第一人称射击游戏
- Luence的与盘古分词的使用软件
- Emgu.CV 打开视频与人脸检测
- unity3d制作贪吃蛇
- unity3D暴力街区射击大战游戏源码
- 麦克纳姆轮程序.rar
- UE4虚幻引擎蓝图艺术大师三部完整版
- Unity3D 实战视频教程 保卫萝卜 2D 游戏
- net微信支付
- unity3d调用中央气象局城市天气数据,
- lucene.net+盘古分词多条件全文检索并匹
评论
共有 条评论