1234567891011121314 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RenwuFollow : MonoBehaviour
- {
- public GameObject followGame;
- // Update is called once per frame
- void Update()
- {
- this.transform.LookAt(followGame.transform,Vector3.up);
- this.transform.localEulerAngles = new Vector3(this.transform.localEulerAngles.x- 25.65f, this.transform.localEulerAngles.y- 86.56f, this.transform.localEulerAngles.z- 5.90f);
- }
- }
|