public static FloatTween TweenOrthographicSize(this Camera self, float to, float duration = 0.5f) { CameraFloatTarget target = new CameraFloatTarget(self, CameraFloatTarget.CameraTargetType.OrthographicSize); FloatTween tween = FloatTween.Create(); tween.Initialize(target, to, duration); return(tween); }
public static FloatTween TweenFieldOfView(this Camera self, float to, float duration = 0.5f) { CameraFloatTarget target = new CameraFloatTarget(self, CameraFloatTarget.CameraTargetType.FieldOfView); FloatTween tween = FloatTween.Create(); tween.Initialize(target, to, duration); return(tween); }