using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace DragonRun
{
public class CreateEnemyWindow : EditorWindow
{
private int xLength = 1;
private int zLength = 1;
private float internaldis = 1;
private float birthPosx;
private float birthPoz;
//出生位置 0前1后
private int birthPosIndex=0;
public EnemyType enemyType;
private void OnGUI()
{
GUILayout.BeginHorizontal();
GUILayout.Label("x轴个数:", GUILayout.Width(60));
xLength = int.Parse(GUILayout.TextField(xLength.ToString()));
GUILayout.Label("z轴个数:", GUILayout.Width(60));
zLength = int.Parse(GUILayout.TextField(zLength.ToString()));
EditorGUI.LabelField(new Rect(0, 30,