private IEnumerator FireTongue()

in UltraFrogRoyale/Assets/GamePlayerController.cs [221:234]


    private IEnumerator FireTongue()
    {
        // fires tongue for a period of time, then blocks firing again
        // for a period of time
        if (tongueReady)
        {
            tongueReady = false;
            tongueDeployed = true;
            yield return new WaitForSeconds(TONGUE_OUT_TIME);
            tongueDeployed = false;
            yield return new WaitForSeconds(TONGUE_RESET_TIME);
            tongueReady = true;
        }
    }