Game gameOver method

gameOver(): void;

The user reached a game over event.

The SDK also uses game over events for competitions, ads, and other features. You should call gameOver for failure outcomes. For example, when the user dies or was unable to complete a level, and when one of the following occurs:

  • The user restarts.
  • The user exits a level.
  • The user clicks the home button to go back to the main menu.
  • A similar event occurs that causes the session to end.

Requirements

  • Your game must call this method for any failure outcomes.