1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- /// <summary>
- /// 角色类型
- /// </summary>
- public enum RoleType
- {
- Common = 0, // 普通怪物
- Elite, // 精英怪
- Boss, // BOSS
- Hero, // 英雄
- NPC, // NPC
- }
- namespace YLBattle
- {
- public class SpawnPoint : MonoBehaviour
- {
- /// <summary>
- /// 气泡类型
- /// </summary>
- public enum BubbleType
- {
- Create = 0, // 默认的 创建
- Sight, // 进入范围
- Area, // 范围
- }
- public int unitId; // 单位ID
- public RoleType roleType; // 角色类型
- public float readius; // 随机半径
- public List<int> dropId;
- public BubbleType bubbleType;
- public string bubbleText;
- // Use this for initialization
- void Start()
- {
- MeshRenderer[] render = this.GetComponentsInChildren<MeshRenderer>();
- foreach(var item in render)
- {
- item.enabled = false;
- }
- }
- // Update is called once per frame
- void Update()
- {
- }
- public void Init(ZoneSpawner spawner)
- {
-
- }
- }
- }
|