SampleManager.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        if (showType == ShowType.Queue) {
            if (currentAnimator != null) {
                AnimatorStateInfo info = currentAnimator.GetCurrentAnimatorStateInfo (0);
                if (info.normalizedTime >= 1) {
                    currentIndex++;
                    if(currentIndex == animatorList.Count){
                        currentAnimator = null;
                    }else{
                        currentAnimator.transform.parent.gameObject.SetActive(false);
                        currentAnimator = animatorList[currentIndex];
                        currentAnimator.transform.parent.gameObject.SetActive(true);
                    }
                }
            }
        }
    }
SampleManager