1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using UnityGameFramework.Runtime;
- using GameFramework.Event;
- namespace YLBattle
- {
- /// <summary>
- /// 区域孵化器 关联 开启区域/解禁区域
- /// </summary>
- public class ZoneSpawner : SpawnerNodeBase
- {
- /// <summary>
- /// 刷怪点MO
- /// </summary>
- public Dictionary<int, YLBattle.SpawnPoint> mPointMos = new Dictionary<int, YLBattle.SpawnPoint>();
- //private List<SceneEventAreaLock> mAreaLocks = new List<SceneEventAreaLock>();
- public int areaLockIndex = 0;
- /// <summary>
- /// 获取孵化点
- /// </summary>
- /// <returns></returns>
- public Dictionary<int, YLBattle.SpawnPoint> GetSpawnPoint()
- {
- return mPointMos;
- }
- private void Awake()
- {
- spawnList = new List<SpawnPoint>(this.transform.GetComponentsInChildren<SpawnPoint>());
- }
- private void OnDestroy()
- {
- }
- private void Update()
- {
- }
- }
- }
|