Esempio n. 1
0
 private void HandleFollowActorChange(ActorObj obj)
 {
     if (followCameraCom == null)
     {
         return;
     }
     followCameraCom.CMCamera.Follow = obj.GetFollowGo().transform;
 }
Esempio n. 2
0
        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));
        }