Beispiel #1
0
 void Awake()
 {
     m_ScoreboardPanelCanvas = scoreboardPanel.GetComponent <Canvas>();
     m_GameScorePanelCanvas  = gameScorePanel.GetComponent <Canvas>();
     m_CountDownPanelCanvas  = countDownPanel.GetComponent <Canvas>();
     m_ChatPanelCanvas       = chatPanel.GetComponent <Canvas>();
     Clear();
 }
Beispiel #2
0
    ///End of line for voting

    //On DIsconnect
    private void OnEnable()
    {
        CountDown voteButton = FindObjectOfType <CountDown>();

        if (!voteButton)
        {
            return;
        }
        voteButton.GetComponent <Button>().interactable = true;
    }