From 766cdff5ffa72b65d7f106658d1603f47739b2ba Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Fri, 27 Oct 2023 11:05:14 +0800 Subject: + init --- GameCode/ObjectParticle.cs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 GameCode/ObjectParticle.cs (limited to 'GameCode/ObjectParticle.cs') 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); +} -- cgit v1.1-26-g67d0