summaryrefslogtreecommitdiff
path: root/GameCode/ObjectParticle.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-10-27 11:05:14 +0800
committerchai <215380520@qq.com>2023-10-27 11:05:14 +0800
commit766cdff5ffa72b65d7f106658d1603f47739b2ba (patch)
tree34d7799a94dfa9be182825577583c0fa6dc935f7 /GameCode/ObjectParticle.cs
+ init
Diffstat (limited to 'GameCode/ObjectParticle.cs')
-rw-r--r--GameCode/ObjectParticle.cs34
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);
+}