mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-30 11:02:16 +00:00
making mockups of the intended UI
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user