AddScore() public method

public AddScore ( ) : void
return void
Beispiel #1
0
    void Die()
    {
        var particles = Instantiate(particlesPrefab, transform.position, Quaternion.identity);

        AudioSource.PlayClipAtPoint(deathSound, transform.position, volume);

        status.AddScore(givenScore);

        Destroy(particles, 1);
        Destroy(gameObject);
    }