private void HandleFollowActorChange(ActorObj obj) { if (followCameraCom == null) { return; } followCameraCom.CMCamera.Follow = obj.GetFollowGo().transform; }
private void OnBeginDrag(DragCameraCom dragCameraCom, PointerEventData eventData) { ActorObj followActor = globalSensor.FollowActor.Value; if (followActor == null) { return; } Vector3 followPos = followActor.GetFollowGo().transform.position; SetCameraPos(dragCameraCom, new Vector2(followPos.x, followPos.y)); }