Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }