LaserData.cs 721 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using ExtensionMethods;
  3. using UnityEngine;
  4. [Serializable]
  5. public class LaserData
  6. {
  7. public Vector3 point2
  8. {
  9. get
  10. {
  11. return this._point2;
  12. }
  13. set
  14. {
  15. this._point2 = value.SetZ(LayerManager.ZNum.Fx);
  16. }
  17. }
  18. public int type = 1;
  19. public int damage = 5;
  20. public bool canRotation = true;
  21. public bool canHitGround = true;
  22. public float laserWidth = 0.3f;
  23. public float rotateAngle = 40f;
  24. public float startAngle = -150f;
  25. public float rotateSpeed = 20f;
  26. public float laserLength = 300f;
  27. public float maxDistance = 40f;
  28. public float waitTime = 0.8f;
  29. public float appearTime = 0.2f;
  30. public Vector3 point1;
  31. private Vector3 _point2;
  32. }