Exemple #1
0
    private void DeathSequence()
    {
        // Turns off the character and calls event system for death related events
        gameObject.SetActive(false);
        onDeath.Invoke();

        // turns of movement in all world chunks
        m_generator.PlayerDied();

        // Sends the amount of coin collected to the end game script
        endScript.CollectedCoins(m_coins);
    }