Files
ColorQuest/Assets/LeanTween/Testing/TestingIssue.cs
Ardella Malinda Sarastri 72b8b42a0b Initial commit
2025-07-10 17:06:42 +07:00

34 lines
552 B
C#

using UnityEngine;
using System.Collections;
using DentedPixel;
public class TestingIssue : MonoBehaviour {
LTDescr lt,ff;
int id,fid;
void Start () {
LeanTween.init();
lt = LeanTween.move(gameObject,100*Vector3.one,2);
id = lt.id;
LeanTween.pause(id);
ff = LeanTween.move(gameObject,Vector3.zero,2);
fid = ff.id;
LeanTween.pause(fid);
}
void Update () {
if(Input.GetKeyDown(KeyCode.A))
{
// Debug.Log("id:"+id);
LeanTween.resume(id);
}
if(Input.GetKeyDown(KeyCode.D))
{
LeanTween.resume(fid);
}
}
}