RenwuFollow.cs 475 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class RenwuFollow : MonoBehaviour
  5. {
  6. public GameObject followGame;
  7. // Update is called once per frame
  8. void Update()
  9. {
  10. this.transform.LookAt(followGame.transform,Vector3.up);
  11. this.transform.localEulerAngles = new Vector3(this.transform.localEulerAngles.x- 25.65f, this.transform.localEulerAngles.y- 86.56f, this.transform.localEulerAngles.z- 5.90f);
  12. }
  13. }