Join our Discord Channel
using UnityEngine;using System.Collections;public class ValueTo : MonoBehaviour { public int int1 = 0; public int int2 = 100; public GUIText scoreDisplay; void OnMouseDown(){ //go from value 1 to value 2: //this next line i would like to have a playmaker action for iTween.ValueTo(gameObject, iTween.Hash("from",int1,"to",int2,"time",6,"onUpdate","UpdateScoreDisplay","easetype","easeOutBounce")); } void OnMouseUp(){ } void UpdateScoreDisplay(int newScore){ scoreDisplay.text = "Score: " + newScore.ToString(); }}