using System.Collections; using System.Collections.Generic; using UnityEngine; public class TopDownUtils { /// /// 从TopDown空间转到3D空间下(TopDownTransform -> Transform) /// /// /// /// public static Vector3 Project(Vector3 topDownCoord, float z = 0) { Vector3 pos = new Vector3(); pos.x = topDownCoord.x; pos.y = topDownCoord.y + topDownCoord.z; pos.z = z; return pos; } }