1234567891011121314151617181920 |
- 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<NetworkManager>()==null){
- networkErrorPanel.SetActive(true);
- inputs.enabled = false;
- }else{
- networkErrorPanel.SetActive(false);
- inputs.enabled = true;
- }
- }
- }
|