public void OnEnable() { slideShowTween = GetComponent<TweenComponentGroup>(); if(!slideShowTween.IsPlaying) slideShowTween.Play(); if(slideShowTween.IsPaused) slideShowTween.Resume(); }
public void OnEnable() { slideShowTween = GetComponent <TweenComponentGroup>(); if (!slideShowTween.IsPlaying) { slideShowTween.Play(); } if (slideShowTween.IsPaused) { slideShowTween.Resume(); } }
public void Start() { slideShowTween = GetComponent<TweenComponentGroup>(); foreach (TweenColorProperty tweenColor in GetComponents<TweenColorProperty>()) { tweenColor.StartDelay = startDelay; tweenColor.Duration = fadeLength; } slideShowTween.StartDelay = startDelay; slideShowTween.Tweens[0].TweenCompleted += HandleHideTweenCompleted; slideShowTween.Tweens[1].TweenCompleted += HandleShowTweenCompleted; UpdateImageNames(); UpdateImageHolderImages(); }
public void Start() { slideShowTween = GetComponent <TweenComponentGroup>(); foreach (TweenColorProperty tweenColor in GetComponents <TweenColorProperty>()) { tweenColor.StartDelay = startDelay; tweenColor.Duration = fadeLength; } slideShowTween.StartDelay = startDelay; slideShowTween.Tweens[0].TweenCompleted += HandleHideTweenCompleted; slideShowTween.Tweens[1].TweenCompleted += HandleShowTweenCompleted; UpdateImageNames(); UpdateImageHolderImages(); }