Search Results for

    Show / Hide Table of Contents

    Class WinScreen

    Manages the win screen display for the game. Displays the winning player's information and triggers the win screen animation.

    Inheritance
    object
    WinScreen
    Namespace: Game
    Assembly: cs.temp.dll.dll
    Syntax
    public class WinScreen : MonoBehaviour

    Fields

    Instance

    A singleton instance of the WinScreen class. Ensures only one instance of the WinScreen exists at a time.

    Declaration
    public static WinScreen Instance
    Field Value
    Type Description
    WinScreen

    playerTexts

    A list of text elements used to display player information on the win screen.

    Declaration
    public List<TextMeshProUGUI> playerTexts
    Field Value
    Type Description
    List<><TextMeshProUGUI>

    Methods

    ShowWinScreen(int)

    Displays the win screen for the specified player. Updates the text and color of the win screen to reflect the winning player.

    Declaration
    public void ShowWinScreen(int player)
    Parameters
    Type Name Description
    int player

    The number of the winning player (1-based index).

    In This Article
    Back to top Example Unity documentation footer