DESKTOP-5RP3AKU\Jisol 81c2bc83ff 临时提交
2024-12-03 19:54:47 +08:00

42 lines
1.1 KiB
C#

using JNGame.PathFinding;
using UnityEngine;
namespace JNGame.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
}
}