private void Start()
 {
     trackerGroupTweener = GetComponent <AlphaTweener>();
     timelineDirector    = timeline?.GetComponent <TweenerDirector>();
     pyramidDirector     = pyramid?.GetComponent <TweenerDirector>();
     UpdateTrackerUsage(usePyramid, useTimeline);
 }
Пример #2
0
 public void ResetToSavedPropertiesGraceful(float duration = 0.3f)
 {
     PositionTweener.ResetPropertyGraceful(duration);
     AnchorsTweener.ResetPropertyGraceful(duration);
     RotationTweener.ResetPropertyGraceful(duration);
     SizeTweener.ResetPropertyGraceful(duration);
     ScaleTweener.ResetPropertyGraceful(duration);
     AlphaTweener.ResetPropertyGraceful(duration);
 }
Пример #3
0
 public void ResetToSavedProperties()
 {
     PositionTweener.ResetProperty();
     AnchorsTweener.ResetProperty();
     RotationTweener.ResetProperty();
     SizeTweener.ResetProperty();
     ScaleTweener.ResetProperty();
     AlphaTweener.ResetProperty();
 }
Пример #4
0
 public void SaveProperties()
 {
     PositionTweener.SaveProperty();
     AnchorsTweener.SaveProperty();
     RotationTweener.SaveProperty();
     SizeTweener.SaveProperty();
     ScaleTweener.SaveProperty();
     AlphaTweener.SaveProperty();
 }
Пример #5
0
 public void Stop(bool reset = false)
 {
     PositionTweener.StopTween(reset);
     AnchorsTweener.StopTween(reset);
     RotationTweener.StopTween(reset);
     SizeTweener.StopTween(reset);
     ScaleTweener.StopTween(reset);
     AlphaTweener.StopTween(reset);
 }
Пример #6
0
        public override void OnComplete(Animation anim)
        {
            base.OnComplete(anim);

            if (anim != DieAnimation)
            {
                return;
            }
            var tweener = new AlphaTweener(this, 0, FadeTime);

            tweener.CompleteAction = action => tweener.KillAndErase();

            Parent.Add(tweener);
        }
Пример #7
0
        public virtual void Discover(int pos, int oldValue)
        {
            var tile = Tile(oldValue);

            tile.Point(TileToWorld(pos));

            // For bright mode
            tile.Rm = tile.Gm = tile.Bm = Rm;
            tile.RA = tile.Ga = tile.Ba = RA;
            Parent.Add(tile);

            var tweener = new AlphaTweener(tile, 0, 0.6f);

            tweener.CompleteAction = (action) =>
            {
                tile.KillAndErase();
                KillAndErase();
            };
            Parent.Add(tweener);
        }
 protected override void Awake()
 {
     base.Awake();
     this.tweener = this.goTween.GetComponent <AlphaTweener>();
 }
Пример #9
0
 public void Fade(float fade, UIAnimationDirection animationDirection = UIAnimationDirection.To,
                  Action callback = null, UIAnimationOptions animationOptions = null)
 {
     AlphaTweener.Tween(fade, animationDirection, callback, animationOptions);
 }