21 lines
531 B
C#
21 lines
531 B
C#
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;
|
|
}
|
|
}
|
|
}
|