ripSyncKeys support

This commit is contained in:
左右看
2023-07-03 18:51:54 +08:00
parent 85f12dda0e
commit 1a49208ad2
13 changed files with 397 additions and 60 deletions
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Easing
{
static public float EaseIn(float x)
{
return x * x * x;
}
static public float EaseOut(float x)
{
return 1 - Mathf.Pow(1 - x, 3);
}
static public float EaseInOut(float x)
{
return x < 0.5 ? 4 * x * x * x : 1 - Mathf.Pow(-2 * x + 2, 3) / 2;
}
}