Exemplo n.º 1
0
    // Set the text
    public void Start()
    {
        // Get a reference to the text component.
        m_TextComponent = GetComponent <TMP_Text>();

        // Get the statistics object that counts the numbers of infected/dead etc players
        levelStats = LevelStats.GetActiveLevelStats();

        // the number in the text is set by the level stats
        m_TextComponent.text = levelStats.GetNumKilledByPlayer().ToString();
    }