摘要:
求两个向量的夹角 方法一: Vector3 d1 = transform.forward; Vector3 d2 = new Vector3(0,3,0); float angle = Vector3.Angle(d1, d2); 方法二 Vector3 d1 = transform.forward 阅读全文
摘要:
Slider滑动条操作 代码 using UnityEngine; using UnityEngine.UI; public class Juse : MonoBehaviour { public Slider slider; void Start() { float num = 4; string 阅读全文