LightningArtItem.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace Funly.SkyStudio
  5. {
  6. [CreateAssetMenu(fileName = "lightningArtItem.asset", menuName = "Sky Studio/Lightning/Lightning Art Item")]
  7. public class LightningArtItem : SpriteArtItem
  8. {
  9. // Alignment within the spawn area.
  10. public enum Alignment
  11. {
  12. ScaleToFit,
  13. TopAlign,
  14. }
  15. [Tooltip("Adjust how the lightning bolt is positioned inside the spawn area container.")]
  16. public Alignment alignment;
  17. [Tooltip("Thunder sound clip to play when this lighting bolt is rendered.")]
  18. public AudioClip thunderSound;
  19. [Tooltip("Probability adjustment for this specific lightning bolt. This value is multiplied against the global lightning probability.")]
  20. [Range(0.0f, 1.0f)]
  21. public float strikeProbability = 1.0f;
  22. [Range(0.0f, 60.0f)]
  23. [Tooltip("Size of the lighting bolt.")]
  24. public float size = 20.0f;
  25. [Range(0.0f, 1.0f)]
  26. [Tooltip("The blending weight of the additive lighting bolt effect")]
  27. public float intensity = 1.0f;
  28. }
  29. }