diff options
Diffstat (limited to 'GameCode/ObjectParticle.cs')
-rw-r--r-- | GameCode/ObjectParticle.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/GameCode/ObjectParticle.cs b/GameCode/ObjectParticle.cs new file mode 100644 index 0000000..5e3927b --- /dev/null +++ b/GameCode/ObjectParticle.cs @@ -0,0 +1,34 @@ +using System; +using Sirenix.OdinInspector; +using UnityEngine; + +[Serializable] +public class ObjectParticle +{ + public float size = 1f; + + public AnimationCurve sizeOverTime = AnimationCurve.Linear(0f, 1f, 1f, 1f); + + public float lifetime = 1f; + + public float rotation; + + public float randomRotation; + + [FoldoutGroup("Color", 0)] + public Color color = Color.magenta; + + [FoldoutGroup("Color", 0)] + public Color randomColor = Color.magenta; + + [FoldoutGroup("Color", 0)] + public Color randomAddedColor = Color.black; + + [FoldoutGroup("Color", 0)] + public float randomAddedSaturation; + + [FoldoutGroup("Color", 0)] + public bool singleRandomValueColor = true; + + public AnimationCurve alphaOverTime = AnimationCurve.Linear(0f, 1f, 1f, 1f); +} |