- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using DG.Tweening;
- public class CameraToPose : MonoBehaviour
- {
- public Camera cam;
- public GameObject go;
- public void moveTo()
- {
- cam.transform.DOMove(go.transform.position,1f);
- cam.transform.LookAt(go.transform);
- }
- }
|