CameraToPose.cs 332 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using DG.Tweening;
  5. public class CameraToPose : MonoBehaviour
  6. {
  7. public Camera cam;
  8. public GameObject go;
  9. public void moveTo()
  10. {
  11. cam.transform.DOMove(go.transform.position,1f);
  12. cam.transform.LookAt(go.transform);
  13. }
  14. }