1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityGameFramework.Runtime;
- using GameFramework.Event;
- namespace YLBattle
- {
- /// <summary>
- /// 孵化器基类
- /// </summary>
- public class SpawnerNodeBase : MonoBehaviour
- {
- public enum ProduceType
- {
- /// <summary>
- /// 清空后 开始CD倒计时
- /// </summary>
- Clean,
- /// <summary>
- /// 未达到孵化上限 便开始CD倒计时
- /// </summary>
- Incomplete,
- }
- public int index = 0; // 序号 用于剧情系统 激活指定序号 孵化器
- public bool isEnable = false; // 是否激活(组件级别)
- public ESpawnerCreateType spawnType = ESpawnerCreateType.CREATE_DEFAULT; // 孵化器类型
- public ESpawnerTriggerType triggerType = ESpawnerTriggerType.TRIGGER_DEFAULT; // 孵化器 默认激活类型
- public ESpawnerEnableType enableType = ESpawnerEnableType.Enable_TC_DEFAULT; // 孵化器 任务卡激活类型
- public ESpawnerWaitType waitType = ESpawnerWaitType.WAIT_IDLE; // 默认 怪物初始状态
- public int requirementTaskId = 0;
- public int requirementStepId = 0;
- public List<SpawnerNodeBase> enableSpawnerList = new List<SpawnerNodeBase>(); // 关联该孵化器关闭时 激活的其他孵化器列表
- public int maxNum; // 最大数量
- public bool isFill; // 是否填装 扑齐数量
- public float produceTime; // 生产时间间隔
- public float offsetPos; // 位置偏移范围(随机范围半径)
- public ProduceType produceType = ProduceType.Clean;
- // <summary>
- // 产卵点列表
- // </summary>
- public List<SpawnPoint> spawnList;
- /// <summary>
- /// 出生点
- /// </summary>
- public int point = 0;
- /// <summary>
- /// 是否小范围随机
- /// </summary>
- public bool randomPos = true;
- /// <summary>
- /// 随机的距离
- /// </summary>
- public float randomDis = 5.0f;
- /// <summary>
- /// 点坐标
- /// </summary>
- public Transform pointTran = null;
- public bool isLastNode = false;
- public int createCount = 0;
-
- }
- }
|