diff options
author | chai <215380520@qq.com> | 2023-10-27 11:05:14 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-10-27 11:05:14 +0800 |
commit | 766cdff5ffa72b65d7f106658d1603f47739b2ba (patch) | |
tree | 34d7799a94dfa9be182825577583c0fa6dc935f7 /GameCode/CodeAnimationInstance.cs |
+ init
Diffstat (limited to 'GameCode/CodeAnimationInstance.cs')
-rw-r--r-- | GameCode/CodeAnimationInstance.cs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/GameCode/CodeAnimationInstance.cs b/GameCode/CodeAnimationInstance.cs new file mode 100644 index 0000000..be847e3 --- /dev/null +++ b/GameCode/CodeAnimationInstance.cs @@ -0,0 +1,62 @@ +using System; +using Sirenix.OdinInspector; +using UnityEngine; +using UnityEngine.Events; + +[Serializable] +public class CodeAnimationInstance +{ + public enum AnimationType + { + position, + scale, + rectPosition, + floatNumber, + rotation + } + + public enum AnimationUse + { + In, + Out, + None, + Boop + } + + public float animationSpeed = 1f; + + [FoldoutGroup("Random", 0)] + public float randomSpeedAmount; + + [FoldoutGroup("USE", 0)] + public bool X = true; + + [FoldoutGroup("USE", 0)] + public bool Y = true; + + [FoldoutGroup("USE", 0)] + public bool Z = true; + + [Space(15f)] + public AnimationType animationType; + + public AnimationUse animationUse; + + public AnimationCurve curve; + + public float multiplier = 1f; + + public Vector3 direction; + + [FoldoutGroup("Events", 0)] + public UnityEvent startEvent; + + [FoldoutGroup("Events", 0)] + public UnityEvent timedEvent; + + [FoldoutGroup("Events", 0)] + public float eventTiming; + + [FoldoutGroup("Events", 0)] + public UnityEvent endEvent; +} |