コード例 #1
0
    public void OnEnable()
    {
        slideShowTween = GetComponent<TweenComponentGroup>();

        if(!slideShowTween.IsPlaying) slideShowTween.Play();
        if(slideShowTween.IsPaused) slideShowTween.Resume();
    }
コード例 #2
0
    public void OnEnable()
    {
        slideShowTween = GetComponent <TweenComponentGroup>();

        if (!slideShowTween.IsPlaying)
        {
            slideShowTween.Play();
        }
        if (slideShowTween.IsPaused)
        {
            slideShowTween.Resume();
        }
    }
コード例 #3
0
    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();
    }
コード例 #4
0
    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();
    }