private void Start() { quitButton.onClick.AddListener(() => { OnlineManager.DisconnectClient(); gameObject.SetActive(false); menuPanel.gameObject.SetActive(true); }); OnlineManager.LogCallback += (string log) => { logViewUI.AddLog(log); }; }
private void Start() { quitButton.onClick.AddListener(() => { OnlineManager.DisconnectClient(); gameObject.SetActive(false); menuPanel.gameObject.SetActive(true); }); OnlineManager.LogCallback += (string log) => { logViewUI.AddLog(log); }; }