ProcessEvent_CameraMove.cs 597 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using ChivaXR;
  5. [RequireComponent(typeof(ProcessBase))]
  6. public class ProcessEvent_CameraMove : MonoBehaviour
  7. {
  8. public Transform moveTarget;
  9. private ProcessBase processBase;
  10. // Start is called before the first frame update
  11. void Awake()
  12. {
  13. processBase = this.GetComponent<ProcessBase>();
  14. processBase.Process_EnterEvent += ProcessEnter;
  15. }
  16. public void ProcessEnter(ProcessBase process)
  17. {
  18. CameraLerpMoveController.Instance.SetCameraMoveTarget(moveTarget);
  19. }
  20. }