예제 #1
0
    protected virtual void LateUpdate()
    {
        if (SubItem.Item.OverlapTime > 0 && !isStopped && PlayingTime > SubItem.Item.OverlapTime && !scheduledNextItem)
        {
            scheduledNextItem = true;
            if (IsMusic)
            {
                SoundsManager.PlayMusic(SoundID);
            }
            else
            {
                SoundsManager.Play(SoundID);
            }
            this.Stop(SubItem.FadeOut);
        }

        if (IsFinish())
        {
            DestroyAudioObject();
        }
        IsDirty = false;
    }