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);
 }