1234567891011121314151617181920 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class FollowUser : MonoBehaviour
- {
- public GameObject go;
-
- void Start()
- {
-
- }
-
- void Update()
- {
- this.transform.LookAt(go.transform);
- this.transform.eulerAngles = new Vector3(0, this.transform.eulerAngles.y-173,0);
- }
- }
|