コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
ファイル: LeanPlaySound.cs プロジェクト: 9045857/MemoriesNSK
        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);
        }
コード例 #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);
        }
コード例 #5
0
        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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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);
        }
コード例 #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);
        }
コード例 #11
0
        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);
        }
コード例 #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);
        }
コード例 #13
0
        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);
        }
コード例 #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);
        }
コード例 #15
0
ファイル: LeanMaterialFloat.cs プロジェクト: kamild160/Quiz
        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);
        }
コード例 #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);
        }
コード例 #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);
        }