using System.Collections; using System.Collections.Generic; using UnityEngine; using Mirror; using HQFPSWeapons; public class NetworkChecker : MonoBehaviour { public GameObject networkErrorPanel; public PlayerInput_PC inputs; void Update() { if(FindObjectOfType()==null){ networkErrorPanel.SetActive(true); inputs.enabled = false; }else{ networkErrorPanel.SetActive(false); inputs.enabled = true; } } }