Search Unity

AngryBots: Not registering deaths

Discussion in 'Editor & General Support' started by GermanViscuso, Dec 5, 2013.

  1. GermanViscuso

    GermanViscuso

    Joined:
    Oct 8, 2013
    Posts:
    4
    Hi.

    Using Unity 3D 4.3.0f4 with the Angrybots demo that comes with it.
    There's a file called GameScore.cs in standard assets which is supposed to register deaths in Angrybots (for both player and enemies). But every time I run the the game and someone dies I get a "Game score not loaded". By taking a look at the code I see that the GameScore singleton is never instantiated. This should happen via:

    instance = (GameScore)FindObjectOfType (typeof (GameScore));

    Do I need to place GameScore.cs somewhere else? I'm not sure why this is not working if it's part of the demo.

    Best!

    German
     
  2. GermanViscuso

    GermanViscuso

    Joined:
    Oct 8, 2013
    Posts:
    4
    Last edited: Dec 10, 2013