GameOverScreen Class

Summary

Pauses the game when shown and has a function to reload the current scene.

The Weaver.Examples.GameOverScreen.Prefab field serves as an example of Lazy Asset Injection.
Assembly
Weaver.dll
Namespace
Weaver.Examples
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["GameOverScreen"] class Type type-node

Syntax

public sealed class GameOverScreen : MonoBehaviour

Methods

Name Value Summary
PlayAgain() void
Unfreezes time and reloads the current scene.
Show() void
Instantiates the Weaver.Examples.GameOverScreen.Prefab and freezes time.
static