示例#1
0
    private IEnumerator ChannelingTime()
    {
        state = InteractionStates.CHANNELING;

        if (_animator != null)
        {
            _animator.Play("ChannelingAnimation");
        }

        yield return(new WaitForSeconds(_channelingTime));

        if (state == InteractionStates.CHANNELING)
        {
            state = InteractionStates.COMPLETED;

            DestroyText(0);
            DestroyText(1);

            // Notify object
            _interaction.Completed();

            // Start completed animation
        }

        _runningThread = null;
    }