Ejemplo n.º 1
0
    private void startAudioAgain()
    {
        if (activePlayingTimestamp != null && vhsData.GetTimestampAtHead(playHeadPosition) == activePlayingTimestamp)
        {
            float timeIntoAnimation = (playHeadPosition - activePlayingTimestamp.TapeStart);
            animationController.PlayAnimationAt(activePlayingTimestamp.AnimStart + timeIntoAnimation, activePlayingTimestamp.Channel);
        }
        else
        {
            Debug.LogWarningFormat("starting audio again {0} {1}", activePlayingTimestamp != null, vhsData.GetTimestampAtHead(playHeadPosition) == activePlayingTimestamp);

            animationController.PlayAnimationAt(0, -1);
        }
    }