incrementEnemyCount() public static method

public static incrementEnemyCount ( ) : void
return void
Esempio n. 1
0
 void handleDeath()
 {
     spriteRenderer.sprite = sprite;
     isDead = true;
     Destroy(gameObject, 4);
     EnemyAchievement.incrementEnemyCount();
 }
    void handleDeath()
    {
        spriteRenderer.sprite = sprite;
        Destroy(gameObject, 2);
        isDead = true;
        EnemyAchievement.incrementEnemyCount();
        AudioSource deathSound = gameObject.AddComponent <AudioSource>();

        deathSound.clip = Resources.Load("Audio/glass_break") as AudioClip;
        deathSound.Play();
    }