![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity
Ayjtymhh
这个作者很懒,什么都没留下…
展开
-
走路跑步检测地面
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NewBehaviourScript1 : MonoBehaviour { public float mo; public float run_power; public float jump; public bool is_ground; //public bool can_ju.原创 2021-07-09 14:54:43 · 76 阅读 · 0 评论 -
Scene
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class follow : MonoBehaviour { public static bool lose; public static bool win; public GameObject lose_ui; public Game.原创 2021-07-09 14:49:13 · 52 阅读 · 0 评论 -
相机跟随+鼠标
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraFollow : MonoBehaviour { public float rollAngle;//XZ平面的角度控制 public float rotAngle;//YZ平面的角度控制 public float distance = 5;//摄像机与角色的距离 publi.原创 2021-07-09 14:47:11 · 89 阅读 · 0 评论