SceneRoot.cs 356 B

123456789101112131415161718
  1. /****************************
  2. summary:
  3. ****************************/
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. public class SceneRoot : MonoBehaviour
  8. {
  9. public Transform a;
  10. private void FixedUpdate()
  11. {
  12. transform.eulerAngles = a.eulerAngles;
  13. transform.position = a.position;
  14. }
  15. }