From 3bf862ea76d349c2aec1f71656dd6f41a82650e0 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 27 May 2021 19:42:52 +0800 Subject: *tween --- Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs | 10 +++++----- 1 file changed, 5 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 ca8a425..bf2c82b 100644 --- a/Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs +++ b/Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs @@ -5,13 +5,14 @@ using UnityEngine; namespace TweenAnimation { - [Serializable] - public abstract class TweenModule + public abstract class TweenModule : ScriptableObject { public bool enabled = true; + public float timeOffset; + #if UNITY_EDITOR - public abstract string name { get; } + public new virtual string name { get { return ""; } } public string description; @@ -22,9 +23,8 @@ namespace TweenAnimation #endif // 根据当前时间更新值 - public virtual void Update(float time) + public virtual void OnUpdate(float time) { } - } } \ No newline at end of file -- cgit v1.1-26-g67d0