/*
     * We want to end the purchase on the next frame to clear the input buffer.
     */
    private IEnumerator EndPurchase()
    {
        vendingMachineInUse.OnPurchaseEnded();
        yield return(null);

        gameSystem.EndPurchase();
        vendingMachineInUse = null;
    }