25 lines
587 B
C#
25 lines
587 B
C#
|
using UnityEngine;
|
||
|
|
||
|
public class MapSpawnShow : MonoBehaviour
|
||
|
{
|
||
|
[HideInInspector]
|
||
|
public MapMonsterCfg mapMonsterCfg;
|
||
|
|
||
|
private void OnDrawGizmos()
|
||
|
{
|
||
|
if (mapMonsterCfg)
|
||
|
{
|
||
|
foreach (var step in mapMonsterCfg.StepList)
|
||
|
{
|
||
|
foreach (var point in step.SpawnPoints)
|
||
|
{
|
||
|
Gizmos.color = Color.green;
|
||
|
Gizmos.DrawCube(point.Pos, new Vector3(0.5f, 0.5f, 0.5f));
|
||
|
Gizmos.DrawIcon(point.Pos, "myicon.png");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|