Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        juicer   = new Juicer(this);
        startPos = this.transform.position;

        juicer.TweenPosition(this.gameObject, endPos, animationCurve, duration, tweenComplete);
    }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown("f"))
     {
         transform.position = startPos;
         juicer.TweenPosition(this.gameObject, endPos, animationCurve, duration, tweenComplete);
     }
 }