private static void ZoomValue(float v_) { ProcessZoom?.Invoke(MainCamera, CameraSystem, v_); Zoom = v_; OnZoom.Invoke(v_); ViewportLimit?.OnZoom(v_); }
public static void MoveToWorldPos(Vector3 pos) { var y = MainCamera.transform.position.y; CameraSystem.WorldPosition = pos; MainCamera.transform.position = pos; if (y != pos.y) { ViewportLimit?.CalculateOffset(); } }