im using unity 2021.1.5
i was making a game for android and the script got an error that i realy realy can’t figure out pls help
btw the script is for checking if internet is on or off
here is the script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class CheckInternet : MonoBehaviour
{
public GameObject InternetUI;
public object Else { get; set; }
// Start is called before the first frame update
void Start()
{
{
}
}
private static void NewMethod()
{
}
// Update is called once per frame
void Update()
{
if (Application.internetReachability==NetworkReachability.ReachableViaLocalAreaNetwork) NewMethod();
Debug.Log("Available");
InternetUI.SetActive(false);
Else if (Application.internetReachability==NetworkReachability.NotReachable) NewMethod();
Debug.Log("Not Available");
InternetUI.SetActive(true);
}
}