08 2024 档案

摘要:1 using System; 2 using UnityEngine; 3 using System.Reflection; 4 public enum ExampleEnum 5 { 6 Value1, 7 Value2 8 } 9 class Program :MonoBehaviour 10 阅读全文
posted @ 2024-08-22 15:12 zerozabuu 阅读(23) 评论(0) 推荐(0) 编辑
摘要:1 /* 2 * 3 * 1.2D顶牌跟随物体 4 * 2.顶牌始终位于物体包围盒中间下方边缘位置 5 * 3.自动计算顶牌中心点,避免顶牌遮挡物体 6 * 7 */ 8 using System.Collections.Generic; 9 using UnityEngine; 10 using 阅读全文
posted @ 2024-08-16 14:46 zerozabuu 阅读(13) 评论(0) 推荐(0) 编辑
摘要:代码说明: 点A:起始点。 方向B:一个方向向量,表示从点A出发的方向。 线段C:由两个点C1和C2定义。 1 using UnityEngine; 2 3 public class LineIntersection : MonoBehaviour 4 { 5 // 返回从点A出发,沿着方向B,与线 阅读全文
posted @ 2024-08-14 10:37 zerozabuu 阅读(37) 评论(0) 推荐(0) 编辑

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