/// <summary> /// tweens the Cameras orthographicSize /// </summary> /// <returns>The korthographic size to.</returns> /// <param name="self">Self.</param> /// <param name="to">To.</param> /// <param name="duration">Duration.</param> public static ITween<float> ZKorthographicSizeTo( this Camera self, float to, float duration = 0.3f ) { var tweenTarget = new CameraFloatTarget( self, CameraFloatTarget.CameraTargetType.OrthographicSize ); var tween = FloatTween.create(); tween.initialize( tweenTarget, to, duration ); return tween; }
/// <summary> /// tweens the Cameras fieldOfView /// </summary> /// <returns>The kfield of view to.</returns> /// <param name="self">Self.</param> /// <param name="to">To.</param> /// <param name="duration">Duration.</param> public static ITween<float> ZKfieldOfViewTo( this Camera self, float to, float duration = 0.3f ) { var tweenTarget = new CameraFloatTarget( self, CameraFloatTarget.CameraTargetType.FieldOfView ); var tween = FloatTween.create(); tween.initialize( tweenTarget, to, duration ); return tween; }