﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

[RequireComponent(typeof(Button))]
public class BuyButton : MonoBehaviour
{
    Button button;

    private void Awake()
    {
        button = GetComponent<Button>();
    }

    public void Buy()
    {
        //disable the button from being pressed again
        button.interactable = false;

        Debug.Log(gameObject.name + " was bought!");
    }
}
