private void Start() { trackerGroupTweener = GetComponent <AlphaTweener>(); timelineDirector = timeline?.GetComponent <TweenerDirector>(); pyramidDirector = pyramid?.GetComponent <TweenerDirector>(); UpdateTrackerUsage(usePyramid, useTimeline); }
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); }
public void ResetToSavedProperties() { PositionTweener.ResetProperty(); AnchorsTweener.ResetProperty(); RotationTweener.ResetProperty(); SizeTweener.ResetProperty(); ScaleTweener.ResetProperty(); AlphaTweener.ResetProperty(); }
public void SaveProperties() { PositionTweener.SaveProperty(); AnchorsTweener.SaveProperty(); RotationTweener.SaveProperty(); SizeTweener.SaveProperty(); ScaleTweener.SaveProperty(); AlphaTweener.SaveProperty(); }
public void Stop(bool reset = false) { PositionTweener.StopTween(reset); AnchorsTweener.StopTween(reset); RotationTweener.StopTween(reset); SizeTweener.StopTween(reset); ScaleTweener.StopTween(reset); AlphaTweener.StopTween(reset); }
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); }
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>(); }
public void Fade(float fade, UIAnimationDirection animationDirection = UIAnimationDirection.To, Action callback = null, UIAnimationOptions animationOptions = null) { AlphaTweener.Tween(fade, animationDirection, callback, animationOptions); }