void Awake() { m_ScoreboardPanelCanvas = scoreboardPanel.GetComponent <Canvas>(); m_GameScorePanelCanvas = gameScorePanel.GetComponent <Canvas>(); m_CountDownPanelCanvas = countDownPanel.GetComponent <Canvas>(); m_ChatPanelCanvas = chatPanel.GetComponent <Canvas>(); Clear(); }
///End of line for voting //On DIsconnect private void OnEnable() { CountDown voteButton = FindObjectOfType <CountDown>(); if (!voteButton) { return; } voteButton.GetComponent <Button>().interactable = true; }