Example #1
0
    public void Update()
    {
        if (PlayingAndEnabled)
        {
            if (UnityEngine.Input.GetButtonDown(Input.SelectButton))
            {
                if (Scoreboard)
                {
                    Scoreboard.Activate();
                }
            }
            if (UnityEngine.Input.GetButtonUp(Input.SelectButton))
            {
                if (Scoreboard)
                {
                    Scoreboard.DeActivate();
                }
            }

            if (UnityEngine.Input.GetButtonDown(Input.AButton))
            {
                //if(Scoreboard)
                //{
                //    ScoreboardManager.Scoreboard.SetScore(gameObject.name, "asd", 10);
                //}
            }
        }
    }
Example #2
0
    public virtual void EndRound()
    {
        Scoreboard scoreboard = WinningPlayer.GetComponent <Player>().Scoreboard;

        if (WinningPlayer.GetComponent <Player>().Scoreboard)
        {
            if (scoreboard)
            {
                scoreboard.DeActivate();
            }
        }

        m_Rounds--;
        m_RoundOver = true;

        WinningPlayer.GetComponent <HoverCarControl>().BearCamera.DORect(WinningPlayer.GetComponent <HoverCarControl>().cameraRect, 1.0f);
        WinningPlayer.GetComponent <HoverCarControl>().BearCamera.GetComponent <HoverFollowCam>().enabled = true;

        LevelManager.FadeScreen();

        if (m_Rounds == 0)
        {
            OnArenaExit();
        }
    }