Ejemplo n.º 1
0
    public void Attacked()
    {
        // Allow player to fire again
        GameCore.SetFireReady(true);
        // Increase the game's score by one
        GameCore.ChangeScore(1);

        // Play the explosion SFX
        MusicPlayer.Instance.PlayExplosion01();

        // Set an explosion in this enemy's place
        MiscSpawner.Instance.CreateExplosion0(this.transform.position, this.renderer.bounds.size.y);

        // Reset this enemy and return it to its spawn pool
        KillSpawn();
    }