Add metadata files for LeanTween assets and update existing prefab references
This commit is contained in:
21
Assets/LeanTween/Testing/TestingColorTweening.cs
Normal file
21
Assets/LeanTween/Testing/TestingColorTweening.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using DentedPixel;
|
||||
|
||||
public class TestingColorTweening : MonoBehaviour {
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
LeanTween.value(gameObject, Color.red, Color.green, 1f)
|
||||
.setOnUpdate(OnTweenUpdate)
|
||||
.setOnUpdateParam(new object[] { "" + 2 });
|
||||
}
|
||||
|
||||
private void OnTweenUpdate( Color update, object obj){
|
||||
object[] objArr = obj as object[];
|
||||
Debug.Log("update:"+update+" obj:"+objArr[0]);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user