logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityScoreInstaller

    Unity-specific installer for the Score service.

    Inheritance
    object
    UnityScoreInstaller
    Implements
    IFoundationInstaller
    IInstaller
    Namespace: Serenity.Score.Installation.Installers
    Assembly: Serenity.UnityScore.Installation.dll
    Syntax
    public class UnityScoreInstaller : ScoreInstaller, IFoundationInstaller, IInstaller
    Remarks

    Creates the UnityScoreService and UnityScoreRepository and wires them together on a dedicated GameObject.

    Constructors

    UnityScoreInstaller()

    Declaration
    public UnityScoreInstaller()

    Methods

    CreateRepository()

    Creates the score repository used by the installed service. Override to swap in a different IScoreRepository backend without duplicating the rest of Install(ILogService).

    Declaration
    protected virtual IScoreRepository CreateRepository()
    Returns
    Type Description
    IScoreRepository

    The score repository.

    Install(ILogService)

    Installs the Score service by creating the Unity MonoBehaviour implementation with a PlayerPrefs-backed repository.

    Declaration
    public override void Install(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService

    The logging service for diagnostic output.

    Implements

    IFoundationInstaller
    IInstaller
    In this article
    © 2026 Serenity. All Rights Reserved