I'm using AppoDeal as Ads for my game. I'm working game on Unity engine and I want allow user to have extra coins by pressing button. Also, I want hide that button if user haven't internet connection.
My sample of code which doesn't working is:
if (Application.internetReachability == NetworkReachability.ReachableViaCarrierDataNetwork)
    {
        coinsButton.SetActive(true);
    }
    else
    {
        coinsButton.SetActive(false);
    }
 
     
     
     
    