Move Lean to ThirdParty folder

This commit is contained in:
alexiscatnip
2022-01-26 21:59:41 +08:00
parent 66da9c6964
commit c2b8c8bc95
591 changed files with 0 additions and 0 deletions
@@ -0,0 +1,18 @@
using UnityEngine;
using Lean.Transition;
public class RepeatFromCode : MonoBehaviour
{
void Start()
{
InvokeRepeating("UpAndDown", 0.0f, 2.0f); // Call every 2 seconds
}
void UpAndDown()
{
transform.
localPositionTransition(Vector3.up, 1). // Move up over 1 second
JoinTransition(). // Connect together
localPositionTransition(Vector3.down, 1); // Move down over 1 second
}
}