Beispiel #1
0
        public static LeanState Register(GameObject target, bool active, float duration)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Active = active;

            return(data);
        }
Beispiel #2
0
        public static LeanState Register(CanvasGroup target, bool blocksRaycasts, float duration)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.BlocksRaycasts = blocksRaycasts;

            return(data);
        }
Beispiel #3
0
        public static LeanState Register(AudioClip target, float duration, float volume = 1.0f)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Volume = volume;

            return(data);
        }
Beispiel #4
0
        public static LeanState Register(CanvasGroup target, bool interactable, float duration)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Interactable = interactable;

            return(data);
        }
        public static LeanState Register(RectTransform target, Vector2 sizeDelta, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.SizeDelta = sizeDelta;
            data.Ease      = ease;

            return(data);
        }
Beispiel #6
0
        public static LeanState Register(RectTransform target, Vector2 offsetMin, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.OffsetMin = offsetMin;
            data.Ease      = ease;

            return(data);
        }
Beispiel #7
0
        public static LeanState Register(CanvasGroup target, float alpha, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Alpha = alpha;
            data.Ease  = ease;

            return(data);
        }
        public static LeanState Register(RectTransform target, float pivot, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Pivot = pivot;
            data.Ease  = ease;

            return(data);
        }
        public static LeanState Register(SpriteRenderer target, Color color, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Color = color;
            data.Ease  = ease;

            return(data);
        }
Beispiel #10
0
        public static LeanState Register(RectTransform target, Vector2 anchorMax, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.AnchorMax = anchorMax;
            data.Ease      = ease;

            return(data);
        }
        public static LeanState Register(Transform target, Vector3 position, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Position = position;
            data.Ease     = ease;

            return(data);
        }
Beispiel #12
0
        public static LeanState Register(Image target, float fillAmount, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.FillAmount = fillAmount;
            data.Ease       = ease;

            return(data);
        }
        public static LeanState Register(Light target, float intensity, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Intensity = intensity;
            data.Ease      = ease;

            return(data);
        }
Beispiel #14
0
        public static LeanState Register(AudioSource target, float volume, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Volume = volume;
            data.Ease   = ease;

            return(data);
        }
Beispiel #15
0
        public static LeanState Register(Material target, string property, float value, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Property = property;
            data.Value    = value;
            data.Ease     = ease;

            return(data);
        }
Beispiel #16
0
        public static LeanState Register(Transform target, Vector3 eulerAngles, Space space, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.EulerAngles = eulerAngles;
            data.Space       = space;
            data.Ease        = ease;

            return(data);
        }
Beispiel #17
0
        public static LeanState Register(Transform target, Vector3 translation, Space space, float duration, LeanEase ease = LeanEase.Smooth)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            data.Translation = translation;
            data.Space       = space;
            data.RelativeTo  = null;
            data.Ease        = ease;

            return(data);
        }
        public static LeanState Register(RectTransform target, float duration)
        {
            var data = LeanTransition.RegisterWithTarget(State.Pool, duration, target);

            return(data);
        }