private void Update() { if (!_networkHUD) { _networkHUD = FindObjectOfType <NetworkHUD>(); } if (!_gameManager) { _gameManager = FindObjectOfType <GameManager>(); //_gameManager.QuitGameBTN.onClick.AddListener(RestartGame); } }
private void Start() { _networkHUD = GetComponent <NetworkHUD>(); }