- 博客(1)
- 收藏
- 关注
原创 unity中2D相机跟随的方法
以下是RPG类的游戏的方法: public Transform faith; public float AheadX = 10f;//X轴最大变量 public float AheadY = 5f;//Y轴最大变量 public float speed = 1f;//速度 public float smooth = 2.5f;//平滑度 void Update() { Vector3 targetPos = new Vector3(trans
2020-07-18 18:52:27
947
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人