File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 4
4
* Licensed under MIT (https://github.com/setchi/EasingCore/blob/master/LICENSE)
5
5
*/
6
6
7
- using System ;
8
7
using UnityEngine ;
9
8
10
9
namespace EasingCore
@@ -44,14 +43,16 @@ public enum Ease
44
43
InOutSine ,
45
44
}
46
45
46
+ public delegate float EasingFunction ( float t ) ;
47
+
47
48
public static class Easing
48
49
{
49
50
/// <summary>
50
51
/// Gets the easing function
51
52
/// </summary>
52
53
/// <param name="type">Ease type</param>
53
54
/// <returns>Easing function</returns>
54
- public static Func < float , float > Get ( Ease type )
55
+ public static EasingFunction Get ( Ease type )
55
56
{
56
57
switch ( type )
57
58
{
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Core Easing Implementation for Unity.
3
3
4
4
## API
5
5
``` csharp
6
- public static Func < float , float > Get (Ease type )
6
+ public static EasingFunction Get (Ease type )
7
7
```
8
8
9
9
## Usage
You can’t perform that action at this time.
0 commit comments