FollowMainCamera.cs 226 B

12345678910111213
  1. using System;
  2. using UnityEngine;
  3. public class FollowMainCamera : MonoBehaviour
  4. {
  5. private void Update()
  6. {
  7. if (R.Camera.Transform != null)
  8. {
  9. base.transform.position = R.Camera.Transform.position;
  10. }
  11. }
  12. }