DebugTween.cs 469 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using DG.Tweening;
  5. public class DebugTween : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. Vector3 v3 = new Vector3();
  9. void Start()
  10. {
  11. DOTween.To(() => v3, v => this.transform.position = v, new Vector3(0, 1, 0), 3);
  12. }
  13. // Update is called once per frame
  14. // void Update()
  15. // {
  16. // this.transform.position = v3;
  17. // }
  18. }