-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathDelegates.cs
13 lines (12 loc) · 1.16 KB
/
Delegates.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
using UnityEngine;
namespace Tweens {
internal delegate DataType LerpDelegate<DataType>(DataType from, DataType to, float time);
internal delegate void ApplyDelegate<ComponentType, DataType>(ComponentType component, DataType value);
internal delegate float EaseFunctionDelegate(float time);
public delegate void OnUpdateDelegate<ComponentType, DataType>(TweenInstance<ComponentType, DataType> instance, DataType value) where ComponentType : Component;
public delegate void OnAddDelegate<ComponentType, DataType>(TweenInstance<ComponentType, DataType> instance) where ComponentType : Component;
public delegate void OnStartDelegate<ComponentType, DataType>(TweenInstance<ComponentType, DataType> instance) where ComponentType : Component;
public delegate void OnEndDelegate<ComponentType, DataType>(TweenInstance<ComponentType, DataType> instance) where ComponentType : Component;
public delegate void OnCancelDelegate<ComponentType, DataType>(TweenInstance<ComponentType, DataType> instance) where ComponentType : Component;
public delegate void OnFinallyDelegate<ComponentType, DataType>(TweenInstance<ComponentType, DataType> instance) where ComponentType : Component;
}