public void Show(Action callback) { mCallback = callback; dfTweenVector3 t = GetComponent <dfTweenVector3>(); t.Play(); }
/** * Move to the target and then destroy ourself */ public void MoveTo(dfTextureSprite pTarget) { dfTweenVector3 v = GetComponent <dfTweenVector3>(); mTexture.BringToFront(); v.StartValue = mTexture.Position; v.EndValue = new Vector3(pTarget.Position.x + (pTarget.Width / 2), pTarget.Position.y - (pTarget.Height / 2)); v.Play(); }
// Use this for initialization public void OnClick() { Tween.StartValue = new Vector3(0, 0, 0); Tween.EndValue = new Vector3(-600, 0, 0); Tween.Play (); Tween.TweenCompleted += (dfTweenPlayableBase sender) => { }; }
// Update is called once per frame void Update() { timer -= Time.deltaTime; // fadeTimer -= Time.deltaTime; if (show && timer < 0) { //label.Hide(); show = false; posTween.Play(); widthTween.Play(); heightTween.Play(); } }
// Use this for initialization public void OnClick() { if (GameConstant.IsMusic == 1) { GetComponent <AudioSource>().clip = clickBtn; GetComponent <AudioSource>().Play(); } Tween.StartValue = new Vector3(-600, 0, 0); Tween.EndValue = new Vector3(0, 0, 0); Tween.Play(); Tween.TweenCompleted += sender => { }; }
public void ShowOverall() { mDetailOverallTween.Play(); }
public void ShowDetail() { mOverallDetailTween.Play(); }