BattleConfig.cs 470 B

12345678910111213141516171819202122
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. public class BattleConfig : MonoBehaviour
  5. {
  6. private List<SpawnPointCfg> mSpawnPointList;
  7. public List<SpawnPointCfg> SpawnPointList
  8. {
  9. get { return mSpawnPointList; }
  10. }
  11. public void AddSpawnPoint(SpawnPointCfg sp)
  12. {
  13. mSpawnPointList.Add(sp);
  14. }
  15. public void DeleteSpawnPoint(SpawnPointCfg sp)
  16. {
  17. mSpawnPointList.Remove(sp);
  18. }
  19. }