BulletLoadParam.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace YLBattle
  4. {
  5. /// <summary>
  6. /// 子弹创建参数
  7. /// </summary>
  8. public class BulletLoadParam
  9. {
  10. /// <summary>
  11. /// 子弹隶属对象编号
  12. /// </summary>
  13. public string uid = string.Empty;
  14. /// <summary>
  15. /// 子弹实例ID
  16. /// </summary>
  17. public string id = string.Empty;
  18. /// <summary>
  19. /// 子弹模板ID [skillId]
  20. /// </summary>
  21. public string tid = string.Empty;
  22. /// <summary>
  23. /// 子弹锁定的目标ID
  24. /// </summary>
  25. public string targetId = string.Empty;
  26. /// <summary>
  27. /// Bundle资源名
  28. /// </summary>
  29. public string res = string.Empty;
  30. /// <summary>
  31. /// 子弹目标队伍
  32. /// </summary>
  33. public EBattleTeam team = EBattleTeam.NONE;
  34. /// <summary>
  35. /// 弹道类型
  36. /// </summary>
  37. public EBulletTrajectoryType traject = EBulletTrajectoryType.EBULLET_TRAJECT_NONE;
  38. /// <summary>
  39. /// 弹道速度
  40. /// </summary>
  41. public float speed = 0f;
  42. /// <summary>
  43. ///
  44. /// </summary>
  45. public EBulletTargeType trgType = EBulletTargeType.EBULLET_TARGET_NONE;
  46. /// <summary>
  47. /// 打击点(0=腰部 1=脚底)
  48. /// </summary>
  49. public EBulletHitPointType hitpoint = 0;
  50. ///// <summary>
  51. ///// 是否为屏幕效果
  52. ///// </summary>
  53. //public int screen = 0;
  54. /// <summary>
  55. /// 音效{用';'隔开,length=3,如果小于数组长度,则!=0情况下,依次播放}
  56. /// </summary>
  57. public string[] audio = new string[] { };
  58. }
  59. }