Interactable button UNITY
<p>I'm trying to make a simple condition:</p>

<p>If the value I have, is less than the price it costs the item, the button is disabled.</p>

<p>If the value I have, is greater than or equal to the price it costs the item the button is enabled and I can buy it.</p>

<p>But when I test, I have some problems.</p>

<p>First, if I have less than the item cost the button is enabled, and only when I click on it it is when it disables.</p>

<p>Second, if I have less than the item cost and I click on it it disables, but if I get enough to purchase the item, the button is not enabled again.</p>

<p>How do I to be checked these variables all the time? If I have enough the button is enabled if you do not have it disables.</p>

<p>Bellow my scrip:</p>

<pre><code>    using UnityEngine;
    using System.Collections;
    using UnityEngine.UI;

    public class BuySkin : MonoBehaviour {

        public int price;
        public Button buyBee1;

        void OnEnable ()
        {
            //Register Button Events
            buyBee1.onClick.AddListener (() =&gt; buySkin (buyBee1));

        }


        public void buySkin(Button button)
        { 
            if (BeeCoinScore.coin &gt;= price) {
                BeeCoinScore.coin -= price;
                buyBee1.interactable = false;

            }

            if (BeeCoinScore.coin &lt; price) {
                buyBee1.interactable = false;
            }
        }

        void OnDisable ()
        {
            //Un-Register Button Events
            buyBee1.onClick.RemoveAllListeners ();

        }
    }
</code></pre>