ZoneSpawner.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityGameFramework.Runtime;
  5. using GameFramework.Event;
  6. namespace YLBattle
  7. {
  8. /// <summary>
  9. /// 区域孵化器 关联 开启区域/解禁区域
  10. /// </summary>
  11. public class ZoneSpawner : SpawnerNodeBase
  12. {
  13. /// <summary>
  14. /// 刷怪点MO
  15. /// </summary>
  16. public Dictionary<int, YLBattle.SpawnPoint> mPointMos = new Dictionary<int, YLBattle.SpawnPoint>();
  17. //private List<SceneEventAreaLock> mAreaLocks = new List<SceneEventAreaLock>();
  18. public int areaLockIndex = 0;
  19. /// <summary>
  20. /// 获取孵化点
  21. /// </summary>
  22. /// <returns></returns>
  23. public Dictionary<int, YLBattle.SpawnPoint> GetSpawnPoint()
  24. {
  25. return mPointMos;
  26. }
  27. private void Awake()
  28. {
  29. spawnList = new List<SpawnPoint>(this.transform.GetComponentsInChildren<SpawnPoint>());
  30. }
  31. private void OnDestroy()
  32. {
  33. }
  34. private void Update()
  35. {
  36. }
  37. }
  38. }