Quantcast
Viewing all articles
Browse latest Browse all 6821

Unable to relaunch game

@monobeginner wrote:

Hey,

I have a problem with my game on Android. When I exit game, it's task is still available (via Task Manager). This is correct behavior on Android. But unfortunatelly, when I press my game's task from task manager or press app icon - game not starts. I could observe that:
1. Music starts to play for ~ 1 sec
2. Music then stops and nothing else happens

This is how I quit game:

Game1.cs
protected override void Update(GameTime gameTime)
{
    ...
    if (SceneManager.IsFinished())
            {
                this.Exit();
            }
}

How to detect that I should recreate game ? Because when SceneManager.IsFinished() becomes true, I basically exit game, but when I recreate game, I should set isFinsihed property to false.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles