diff options
author | chai <chaifix@163.com> | 2021-05-27 18:11:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-05-27 18:11:57 +0800 |
commit | 654d95efad67a00cb4cffc300419092e9a5093e5 (patch) | |
tree | 8d8d66ae9550baaf55dd07e8a126603256b61949 /Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs | |
parent | 9ff19bb9f048e74670b6292889edc54ae47c61fe (diff) |
*tween animation
Diffstat (limited to 'Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs')
-rw-r--r-- | Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs b/Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs index 3d4968a..ca8a425 100644 --- a/Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs +++ b/Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs @@ -8,19 +8,23 @@ namespace TweenAnimation [Serializable]
public abstract class TweenModule
{
- public string description;
-
- public bool enabled;
+ public bool enabled = true;
#if UNITY_EDITOR
public abstract string name { get; }
+ public string description;
+
public virtual string tooltip { get { return "Tween Module " + name; } }
- public virtual void OnGUI()
+ [NonSerialized]
+ public bool unfold;
+#endif
+
+ // 根据当前时间更新值
+ public virtual void Update(float time)
{
}
-#endif
}
}
\ No newline at end of file |