AkiraPixelWind/Assets/Scripts/Main/Definition/ScriptableObject/MapMonsterCfg.cs

39 lines
788 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "BulletData", menuName = "ScriptableObject/×Óµ¯Êý¾Ý", order = 0)]
public class MapMonsterCfg : ScriptableObject
{
public int MapID;
public List<MapMonsterCfg_Step> StepList;
public MapMonsterCfg()
{
StepList = new List<MapMonsterCfg_Step>();
}
}
[Serializable]
public class MapMonsterCfg_Step
{
public int StepID;
public List<MapMonsterCfg_Spawn> SpawnPoints;
public MapMonsterCfg_Step()
{
SpawnPoints = new List<MapMonsterCfg_Spawn>();
}
}
[Serializable]
public class MapMonsterCfg_Spawn
{
public int SpawnPointID;
public int MonsterCfgID;
public Vector3 Pos;
public int MonsterCount;
}