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