Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        updatePlayerList();

        if (selectedPlayerName != null)
        {
            PlayerStatistics activePlayer = playerList.getPlayerList()[selectedPlayerName];
            timespent.text          = "Total Time Spent: " + string.Format("{0:.##}", activePlayer.timeSpent) + " s";
            name.text               = "Student : " + activePlayer.name;
            scenariosCompleted.text = "Scenarios Completed: " + activePlayer.scenariosCompleted.ToString();
            movementDisabled.text   = "Movement Disabled: " + activePlayer.GetComponent <PlayerMovement>().keys_disabled.ToString();
        }
    }