예제 #1
0
    public void Show(Action callback)
    {
        mCallback = callback;
        dfTweenVector3 t = GetComponent <dfTweenVector3>();

        t.Play();
    }
예제 #2
0
    /**
     * 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();
    }
예제 #3
0
	// 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) => {
			
		};
		
	}
예제 #4
0
 // 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();
     }
 }
예제 #5
0
    // 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 =>
        {
        };
    }
예제 #6
0
 public void ShowOverall()
 {
     mDetailOverallTween.Play();
 }
예제 #7
0
 public void ShowDetail()
 {
     mOverallDetailTween.Play();
 }