12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using ChivaXR;
- [RequireComponent(typeof(ProcessBase))]
- public class ProcessEvent_CameraMove : MonoBehaviour
- {
- public Transform moveTarget;
- private ProcessBase processBase;
- // Start is called before the first frame update
- void Awake()
- {
- processBase = this.GetComponent<ProcessBase>();
- processBase.Process_EnterEvent += ProcessEnter;
- }
- public void ProcessEnter(ProcessBase process)
- {
- CameraLerpMoveController.Instance.SetCameraMoveTarget(moveTarget);
- }
- }
|