【Unity】角色沿着地形边缘滑行效果实现
摘要:如图,游戏角色在地形的边缘,且沿移动方向(蓝色Z轴方向)继续移动将要掉落地形时,控制角色沿着地形边缘滑行移动,而不是让角色直接停在原地(这样处理游戏体验极差)。 using System.Collections;using System.Collection...
阅读全文
【Unity】基于UnityWebRequest简单封装Http的Get/Put/Post
摘要:HttpManager,统一对外接口,目前封装了Get/Put/Post,尚未用的Delete(原理一样) using System.Collections.Generic;using System;using System.Text;//GET请求会向服务...
阅读全文
【Unity】自定义[Attribute]特性标记
摘要:继承Attribute,自定义特性类 using System;public class HttpApiKey : Attribute{ public HttpApiKey(string _httpApi) { httpApi = _...
阅读全文