1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
using System;
using Sirenix.OdinInspector;
using UnityEngine;
[Serializable]
public class LineEffectInstance
{
public enum CurveType
{
Add,
Multiply
}
[Space(20f)]
public bool active = true;
[FoldoutGroup("Main Curve", 0, Order = 0, Expanded = true)]
public CurveType curveType;
[FoldoutGroup("Main Curve", 0, Order = 0, Expanded = true)]
public AnimationCurve mainCurve = AnimationCurve.Linear(0f, 0f, 1f, 0f);
[FoldoutGroup("Main Curve", 0, Order = 0, Expanded = true)]
public float mainCurveMultiplier = 1f;
[FoldoutGroup("Main Curve", 0, Order = 0, Expanded = true)]
public float mainCurveTiling = 1f;
[FoldoutGroup("Main Curve", 0, Order = 0, Expanded = true)]
public bool tilingPerMeter = true;
[FoldoutGroup("Modifiers", 0)]
public AnimationCurve effectOverLineCurve = AnimationCurve.Linear(0f, 1f, 1f, 1f);
[FoldoutGroup("Animation", 0)]
public float mainCurveScrollSpeed;
[FoldoutGroup("Animation", 0)]
public AnimationCurve effectOverTimeCurve = AnimationCurve.Linear(0f, 1f, 1f, 0f);
}
|