SpawnPoint.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. /// <summary>
  5. /// 角色类型
  6. /// </summary>
  7. public enum RoleType
  8. {
  9. Common = 0, // 普通怪物
  10. Elite, // 精英怪
  11. Boss, // BOSS
  12. Hero, // 英雄
  13. NPC, // NPC
  14. }
  15. namespace YLBattle
  16. {
  17. public class SpawnPoint : MonoBehaviour
  18. {
  19. /// <summary>
  20. /// 气泡类型
  21. /// </summary>
  22. public enum BubbleType
  23. {
  24. Create = 0, // 默认的 创建
  25. Sight, // 进入范围
  26. Area, // 范围
  27. }
  28. public int unitId; // 单位ID
  29. public RoleType roleType; // 角色类型
  30. public float readius; // 随机半径
  31. public List<int> dropId;
  32. public BubbleType bubbleType;
  33. public string bubbleText;
  34. // Use this for initialization
  35. void Start()
  36. {
  37. MeshRenderer[] render = this.GetComponentsInChildren<MeshRenderer>();
  38. foreach(var item in render)
  39. {
  40. item.enabled = false;
  41. }
  42. }
  43. // Update is called once per frame
  44. void Update()
  45. {
  46. }
  47. public void Init(ZoneSpawner spawner)
  48. {
  49. }
  50. }
  51. }