From 654d95efad67a00cb4cffc300419092e9a5093e5 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 27 May 2021 18:11:57 +0800 Subject: *tween animation --- Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs') 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 -- cgit v1.1-26-g67d0