summaryrefslogtreecommitdiff
path: root/Assets/UI_Extension/Scripts/Animation/Tween/TweenModule.cs
blob: ca8a425df7c91a7f1d9bdebaaa8981c25f3a5fb7 (plain)
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
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TweenAnimation
{
    [Serializable]
    public abstract class TweenModule
    {
        public bool enabled = true;

#if UNITY_EDITOR
        public abstract string name { get; }

        public string description;

        public virtual string tooltip { get { return "Tween Module " + name; } }

        [NonSerialized]
        public bool unfold;
#endif

        // 根据当前时间更新值
        public virtual void Update(float time)
        {
        }

    }
}