This commit is contained in:
PC-20230316NUNE\Administrator
2024-09-29 20:30:29 +08:00
parent c5700ce655
commit a16d51d033
151 changed files with 69 additions and 63 deletions

View File

@@ -0,0 +1,42 @@
using JNGame.PathFinding;
using UnityEngine;
namespace Lockstep.Game
{
/// <summary>
/// 地图调试可视化
/// </summary>
public class MapVisualize : MonoBehaviour
{
#if UNITY_EDITOR
public bool isDrawMap;
public void DebugVisualize()
{
// if (GSystem.Root == null) { return; }
// var Map = GSystem.Root.GetService<DemoMapService>()?.Map;
//
// if (Map is not null)
// {
// BspTree.s_DebugMat = Resources.Load<Material>("WhiteMat");
// BspTree.s_DebugTrans = gameObject.transform;
// Map.DebugVisualize();
// }
}
private void OnDrawGizmos()
{
// if (GSystem.Root == null) { return; }
// var Map = GSystem.Root.GetService<DemoMapService>()?.Map;
//
// if (Map is not null && isDrawMap)
// {
// // 绘制地图
// Map.DrawGizmos();
// }
}
#endif
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 79b9341e6e6b4b3da75d6f4383242e1d
timeCreated: 1715242605