• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
萧然CS
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2021年5月29日

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

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3