Initial commit
This commit is contained in:
33
Assets/LeanTween/Testing/TestingIssue.cs
Normal file
33
Assets/LeanTween/Testing/TestingIssue.cs
Normal file
@ -0,0 +1,33 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user