24 lines
842 B
C#
24 lines
842 B
C#
using Framework;
|
|
using Gameplay.Level;
|
|
using UnityEditor;
|
|
|
|
public class PVPTools
|
|
{
|
|
[MenuItem("Tools/PVP/打印防守布阵格子Array(运行时)")]
|
|
public static void PrintPvpDefendRegion()
|
|
{
|
|
var pvpLevelID = TableManager.Instance.Tables.GlobalConfig.PVPLevelID;
|
|
LevelManager.Instance.TryGetLevelInfoByID(pvpLevelID, out LevelInfo pvpLevelInfo);
|
|
var mapData = pvpLevelInfo.MapData;
|
|
var levelData = pvpLevelInfo.LevelData;
|
|
var region = mapData.GetRegion(levelData.pvpDefendRegionId);
|
|
var list = region.positions;
|
|
string str = "";
|
|
for (int i = 0; i < list.Count; i++)
|
|
{
|
|
string content = (i == list.Count - 1) ? list[i].ToString() : (list[i] + "|");
|
|
str += content;
|
|
}
|
|
DebugUtil.LogError("cellIndex List: " + str);
|
|
}
|
|
} |