08 2024 档案

摘要:速览 Lerp用于插值,可以和协程配合用于移动。SmoothDamp是阻尼移动,从不超过。MoveTowards是匀速移动,也不会超过。 方案1,使用Lerp——先快后慢运动(线性衰减) (不好用✖) Lerp最简单的用法如下: void Update(){ transform.position = 阅读全文
posted @ 2024-08-09 10:54 porter_代码工作者 阅读(1142) 评论(0) 推荐(1) 编辑
摘要:客户端去连接公网ip,端口为公网端口 C#测试代码如下:服务器: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using 阅读全文
posted @ 2024-08-05 17:21 porter_代码工作者 阅读(87) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示